I would love to see sources (referrers) of my registered users.
Example:
Registered user A - referrer: quora.com/xyz (a user clicked on a backlink on quora.com/xzy website...)
Registered user B - referrer: google.com
Registered user C - referrer: example.com/zzz
Registered user D - referrer: example2.com/xxx
How can I achieve that, is there any ready-made extension? Or what data should I automatically send to GAnalytics (now I can only see a number of registrations from a specific source/not a conrete registrations/users).
Thanks.
Hi @peter_loncki,
You can get the referer using the header "HTTP_REFERER". Please check below screenshot. I landed on the StackOverflow page from Google and the referer is showing as google.co.in.
In Magento using "request" object you can get this value - $this->getRequest()->getServer('HTTP_REFERER');
In brief, create an observer which triggers on "controller_action_predispatch" event, read the 'HTTP_REFERER' header from the request object and save it somewhere in the DB.
This post will help you if you know Magento coding - https://stackoverflow.com/questions/12599945/magento-approach-saving-referer-url-and-keywords
--------
Give Kudos if it helped or if problem is solved Accept it as a solution
Hi @kalyanchakri,
Perfect! Thank you. It would be great to save these referrer details about every visitor/user to an analytics tool. Do you know any that could be integrated with my Magento store?
Hi @peter_loncki,
I found these Magento extensions which can help you.
Magento 1: https://marketplace.magento.com/metagento-referrer-url-tracking.html, http://www.silvertouch.com/MagentoExtensions/visitor-tracking.html
Magento 2: https://marketplace.magento.com/metagento-referrerurl-magento2.html
Google Analytics can also help you in tracking the referrals, please check these articles - 1. https://support.google.com/analytics/answer/6205762?hl=en
2. https://neilpatel.com/blog/referral-paths-in-google-analytics/
3. https://www.quora.com/How-do-you-track-your-own-referral-traffic-in-Google-analytics
--------
Give Kudos if it helped or if problem is solved Accept it as a solution