Piwik Version 1.2 goal returning visitors


#1

In this new version of piwik can we now track in our goals the returning visitors
eg
original website it came from etc
and original search phrase from google
Regards Tudor


#2

anyone?


#3

i shall repeat the question although expecting a bump here
In this new version of piwik can we now track in our goals the returning visitors
eg
original website it came from etc
and original search phrase from google


(Matthieu Aubry) #4

If a visitor converts a goal, piwik will attribute the goal conversion to the most recent referrer.

You can change this, so that when a goal converts, piwik will credit the first referrer instead.

This can be changed by calling the JS function: setConversionAttributionFirstReferrer( bool ) – Set to true to attribute a conversion to the first referrer. By default, conversion is attributed to the most recent referrer.

http://piwik.org/docs/javascript-tracking/

something like


[..]
piwikTracker.trackPageView();
piwikTracker.setConversionAttributionFirstReferrer( true );
[..]


#5

Trying it today thanks :)-D


#6

here is what i am using for tracking a mailto link

var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
piwikTracker.trackLink("mailto:info@mydomain.net", “link”);
piwikTracker.trackGoal(1);

so do i change to this

var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 1);
piwikTracker.trackPageView();
piwikTracker.setConversionAttributionFirstReferrer( true );
piwikTracker.enableLinkTracking();
piwikTracker.trackLink("mailto:info@mydomain.net", “link”);
piwikTracker.trackGoal(1);

and other site im using for a download goal
var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
piwikTracker.trackLink(“http://www.mydomain.co.uk/menu.pdf”, “download”);
piwikTracker.trackGoal(2);

do i change to
var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 1);
piwikTracker.trackPageView();
piwikTracker.setConversionAttributionFirstReferrer( true );
piwikTracker.enableLinkTracking();
piwikTracker.trackLink(“http://www.mydomain.co.uk/menu.pdf”, “download”);
piwikTracker.trackGoal(2);

This would be wonderful if it works
and imagine the difference will be the goal will be credited to first referral
rather than last


#7

could you also confirm if this line of code is correct for the mailto
actually looking at it not sure if it is counting the page view as a goal rather than the click
as we about to engge with an online booking facility it would be handy to see where people come from when clicking on that link to

info@mydomain.co.uk


#8

anyone?


#9

help?


(vipsoft) #10

You should piwikTracker.setConversionAttributionFirstReferrer( true ); before calling trackPageView(). Other than that, your code snippets look ok.

The mailto: anchor link should have the target attribute.


<a href="mailto:info@mydomain.co.uk" target="_blank" onClick="javascript:piwikTracker.trackLink('/mailto/agent-email');">info@mydomain.co.uk</a> 


#11

thank you so much


(Matthieu Aubry) #12

Cool Anthon, I added this to the doc in: http://piwik.org/docs/javascript-tracking/#toc-force-a-click-on-a-link-to-be-recorded-as-an-outlink-in-piwik