
In some cases, you will want to create a bridge page that will automatically forward your visitors to a product / offer link.
Usually, you can achieve this with standard HTML Tag: <meta http-equiv="refresh" />
.
Since AnyTrack doesn't support meta
tags you should create a redirect script that will AutoTags your link with the AnyTrack click_id
.
👉 You can also check the article that shows you how to create a deeplink on your own domain.
Using the Populate function
The AnyTrack populate
function allows you to take any offer link and automatically populate it with a unique click_id
AnyTrack can track. Running this command will trigger an OutboundClick event and will AutoTag
the offer link with the appropriate click_id
.
For example:
var link = AnyTrack('populate', 'https://hop.clickbank.net/?affiliate=AFFILIATE&vendor=VENDOR');
This command will take the offer link https://hop.clickbank.net/?affiliate=AFFILIATE&vendor=VENDOR
as an input, generate an OutboundClick event and will return a populated link such as:
https://hop.clickbank.net/?affiliate=AFFILIATE&vendor=VENDOR&tid=2RSd7Mds4sBbRgkY
The output link carries an is a trackable link you can use to redirect your users.
Full Example
<script>
AnyTrack(function() {
window.location = AnyTrack('populate', 'https://www.your-affiliate-link.com/');
});
</script>
This script will wait until AnyTrack TAG is loaded and then redirect the user to the link https://www.your-affiliate-link.com .
Replace this link with your offer link and the user automatically will redirect to your offer link when the page is loaded.
Note: Please remember to place this script anywhere AFTER your existing AnyTrack TAG.
Advance Usage: Existing Click ID
The populate command also supports populating existing click IDs that you generated previously. In order to populate the link with the given click id, just add the click ID on the third parameter.
This is extremely useful when you want to add some custom parameters on your click ID such as email or other matching parameters:
<script>
AnyTrack(function() {
var click_id = AnyTrack('OutboundClick', {
email: 'john.doe@gmail.com'
});
window.location = AnyTrack('populate', 'https://www.your-affiliate-link.com', click_id);
});
</script>
Comments
0 comments
Please sign in to leave a comment.