I want to be able to track the cloaked affiliate link --> http://myreview.com/visit/amazon in goals so I can see how many times my affiliate links gets clicked on.
In creating a goal, when goal is triggered when visitors --> do I choose:
Option 1 --> Visit a given URL (page or group of pages)
where the URL (it says Page Title by the way which I think is wrong) contains “http://myreview.com/visit/” or just “visit/” is enough?
or
Option 4 --> Click on a Link to an external website
where the external website URL contains amazon.com?
I am confused as to which above mentioned option is the correct one to use. The cloaked link is obviously for an external website, but the cloaking plugin uses my site’s URL to mask the affiliate link.
In this case, it’s a bit different, because the link is neither external (option 4 will not work), and it is not a “Page view” as such, because the JS tracker is not executed in your cloacked page (option 1 will not work).
2 options:
In your cloaking page, instead of redirecting directly to the URL, have a HTML page load, with the Piwik JS code in it, and redirect the visitor after 1 second to your affiliate URL
Thanks for your response, but I am having difficulty understanding the jargon…
What do you mean by “cloaking page”?
How do you do a HTML page load with the Piwik JS code in it?
Do both the solutions you provided above stop me from using the plugin on my wordpress site?
I just tried to read the Piwik Tracking API page you directed me to, and it is way over my head to understand…
Do you know of any other analytics solutions that can track cloaked affiliate links?
Will this feature be added into piwik in the future?
My question, is there a way to avoid the 1 sec delay? Maybe insert client side redirect using javascript ? WHat if 1 sec is too long or not enough to track what piwik needs?
(location.href = ? Maybe )
Does option 1 (Visit a given URL) have to be an Internal website where Piwik has stats pages on it?
Also, anyway to hijack the stats from Google Adwords Javascript or other 3rd party banner servers? They decide on the image and the URL, so don’t think you can track this? Maybe track external clicks going to doubleclick.net who they farm it out too. ( I think won’t work because its a javascript induced link as below
And option 4 (external website) will not work unless its a normal hyperlink part of the DOM , and not part of any javascript induced URL click?