setConversionAttributionFirstReferrer not working


#1

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:

    <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 -->

(Matthieu Aubry) #2

Hi there,

it is possible that there is a bug in Piwik. If you can reproduce this issue please create a bug report at: Issues · matomo-org/piwik · GitHub and the core developers will investigate


#3

I apologize I misunderstood the setConversionAttributionFirstReferrer option. This option uses the first referrer in the last visit to attribute the conversion. What I actually need is attribute the conversion to the first referrer in the first visit instead. Is this possible in the most current version? Thank you.


(Matthieu Aubry) #4

What I actually need is attribute the conversion to the first referrer in the first visit instead.

This feature should do exactly just what you want. if you find it does not work, please create bug report with steps to reproduce the issue: Issues · matomo-org/piwik · GitHub