Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

setConversionAttributionFirstReferrer not working (no replies)

$
0
0
Hi,

I'm currently using the line below to set the conversion attribution to the first referrer and it doesn't seem to change anything. I am using piwik on our Magento site.

All the conversions that have multiple visits with different campaigns are attributed to the last visit's campaign name.

My tracking code is below:

<!-- START PIWIK TRACKING CODE -->
<script type="text/javascript">
//<![CDATA[
var _paq = _paq || [];
(function(){
var u="//www.mywebsite.com/piwik/";
_paq.push(['setSiteId', 1]);
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setConversionAttributionFirstReferrer', true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js';
s.parentNode.insertBefore(g,s); })();
</script>
<noscript><p><img src="//www.mywebsite.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- END PIWIK TRACKING CODE -->

Viewing all articles
Browse latest Browse all 4243

Trending Articles