UTM Tracking for TINTs, Embeds, and CTAs

UTM codes are codes that Google Analytics uses to track campaigns and lead sources.

They can be added as a parameter to any TINT URL, i.e.: 
https://www.tintup.com/?utm_source=docs

The UTM codes are:
utm_source
utm_campaign
utm_medium
utm_content
utm_term


Addging UTM codes to embeds

Embeds support UTM codes added via data tags, for example:
<script async src="/public/js/build/embed.js"></script>
<div class="tintup"
data-id="tony"
data-baseurl="https://www-l.tintdev.com"
data-utm-medium="embed page"
style="height:500px;width:950px;"></div>

That would add utm_medium to the iframe, which would then be tracked in analytics.

Embeds support passthrough as well:

data-utm-passthrough="true"

If this is set and the enclosing page is loaded with UTM codes, those will be passed down to the embed.

 

Adding UTM codes to CTAs

There is a final embed option that allows adding UTM codes to CTAs.

data-append-utm-to-cta="true"

If that is added, then CTA buttons will include the given UTM codes.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.