Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
yab_utm_tracker
yab_utm_tracker
This is a Textpattern CMS plugin.
Saves UTM tracking parameter in a session for later usage.
Usage
Install and activate the plugin.
Place at least one <txp:yab_utm_tracker />
on the page where you expect the UTM parameters are set (normally the landing page of a campaign etc). You can also just place it in the template on for every page. If UTM parameters are read and stored they will not be overwritten for this current session.
Attributes
tracker:
To show the parameters for this session you can make use of the tracker
attribute. Available trackers are utm_source
, utm_medium
, utm_campaign
, utm_term
and utm_content
.
<txp:yab_utm_tracker tracker="utm_campaign" />
clear:
Clears the stored parameters in the current session.
<txp:yab_utm_tracker clear="1" />
Example
<txp:yab_utm_tracker />
<ul>
<li>Source: <txp:yab_utm_tracker tracker="utm_source" /></li>
<li>Medium: <txp:yab_utm_tracker tracker="utm_medium" /></li>
<li>Campaign: <txp:yab_utm_tracker tracker="utm_campaign" /></li>
<li>Term: <txp:yab_utm_tracker tracker="utm_term" /></li>
<li>Content: <txp:yab_utm_tracker tracker="utm_content" /></li>
</ul>
Changelog
Version 0.1.0 – 2024-11-14
- Initial release.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Pages: 1