plug in
Google Analytics for WordPress by Yoast
double installed?
check your source page for ‘ga.js’
turn on demographics – yoast plug in
show advanced settings => check “host ‘ga.js locally” => insert code
https://stats.g.doubleclick.net/dc.js
Bounce Rate
You can add a ‘script’ to your footer.php in editor, just before the closing body tag.
or if you have a theme settings page paste in the footer section
Copy and paste =>
<script type=”text/javascript”>
(function (tos) {
window.setInterval(function () {
tos = (function (t) {
return t[0] == 50 ? (prseInt(t[1]) + 1) + “:00” : (t[1] || “0”) + “:” + (parseInt(t[0]) + 10);
})(tos.split(“:”).reverse());
window.pageTracker ? pageTracker._trackEvent(“Time”, “Log”, tos) : _gaq.push([“_trackEvent”, “Time”, “Log”, tos]);
}, 10000);
})(“00”);
</script>
Event Tracking
event tracking tracks anything the user clicks on, affiliate links, downloads, links to other urls’, etc…
onclick=”_gaq.push([‘_trackEvent’, ‘category’, ‘action’, ‘label’]);”
replacing category, action, label
• Category – The category/type of event, e.g. Affiliate Click
• Action – Give the action a name, eg click (I use affiliate programme name here)
• Label – Anything else you want to include (I use the page URL)
text link – <a href=”https://pt175.isrefer.com/go/BABY/ashleep/”>Add To Cart</a>
event tracking code – onclick=”_gaq.push([‘_trackEvent’, ‘affiliate’, ‘dating-divas’, ‘gender-reveal’]);”
final link – <a href=”https://pt175.isrefer.com/go/BABY/ashleep/” onclick=”_gaq.push([‘_trackEvent’, ‘affiliate’, ‘dating-divas’, ‘gender-reveal’]);”>Add To Cart</a>
Link up to webmaster tools
admin => account => property => property settings
scroll down to webmaster tools site, click edit, pick which site