• Hi, in order to track the referrer source of my visitors and attribute correctly the conversion, I want to record the referrer for each visit on my WordPress website and add the value as a parameter in a url (my conversion is at the end of a funnel in a second website).
    Can I use a plugin to do that (like CP referrer) or how can I develop this feature?

    Thanks for your suggestions
    Céline

    • This topic was modified 2 weeks, 4 days ago by celinech.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The referrer URL is available in PHP from $_SERVER['HTTP_REFERER']. It can be appended to subsequent funnel URLs as a query string. Exactly how depends upon how the funnel URLs are generated. A generic example:
    $funnel = add_query_arg('referer', urlencode($_SERVER['HTTP_REFERER']), $funnel );

    CP Referrer will obviously track referrers, but I don’t know if it’ll pass referrers as URL query strings. Since it tracks referrers, maybe passing them with an URL is unnecessary? For more specifics on this plugin I recommend asking in their dedicated support forum.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.