Analytics with Ottimo
Introduction
Account setup
Collections
Why we built Ottimo
Release notes
Learning
‣
‣
‣
Choosing content analytics tools
B2B content analytics: what to track
Understanding traffic metrics in Universal Analytics
Understanding engagement metrics in Universal Analytics
GA4: Bounce rate vs engagement rate
What is direct traffic in Google Analytics?
Using Impressions to improve content performance
How to track revenue from organic search
Difference between bounce rate and exit rate
How to calculate Retained Entrances
What is "share of search"?
Marketing attribution setup
UTM parameter best practices
‣
‣
‣
Resources
‣
‣
‣
Content Strategy Quickstart
Contact us
Tag users with a page source attribution parameter
Learn how to tag pages with a url parameter so you can discover a user through your website
This code decorates all links to a certain type of page with an attr
parameter telling you which page someone came from.
<script>
var links = document.getElementsByTagName("a");
for (var i = 0; i < links.length; i++) {
var link = links[i];
if (link.href.indexOf("/contact") !== -1) {
link.href += (link.href.indexOf("?") === -1 ? '?' : '&');
link.href += "ref_cta=" + link.innerText.toLowerCase().replace(/[\s,.:;!]/g, "-") + "&ref=" + window.location.pathname.toLowerCase().replace(/[\s,.:;!]/g, "-");
}
}
</script>
You might find our newsletter helpful
Everything we have to say on SEO, content performance, and content analytics – in convenient email form.
super-embed:<div class="klaviyo-form-XshxEW"></div>
(Having doubts? Here's a recent issue.)