“webinar”/ “VOLUUM”/
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

Techie help&advice needed?

Discussion in 'General Affiliate Marketing Forum' started by Trevor Butler, Jun 5, 2019.

  1. Trevor Butler

    Trevor Butler Affiliate affiliate

    Afternoon All.

    Hoping someone can help with a solution I need.

    So I run a couple of direct campaigns with my clients and deliver leads into them via my WordPress site.

    I generate the traffic to my site through channels such as FB and email marketing and when an inquiry is received it is sent to my client and also to a lead management platform which keeps track of everything for me. Simple & Happy.

    Recently, a few of my buddies involved with IM have expressed an interest to send me traffic to my site on a CPL basis. This seems like a great idea but im a bit stumped on how i can report this back to them?

    So they send me traffic like

    Affiliate 1 = site. com?id=1trans=12345
    Affiliate 2 = site. com?id=2trans=12346

    Simple so far ...

    My problem is this ...

    If the traffic affiliate 1 sends to me navigates around my site for a few minutes how do i pass the variables id=1trans=12345 with them?
    And once a visitor completes an inquiry form, i need to notify them via API/Pixel they have made/generated an enquiry so they have made £xx from that visitor?

    Any off the shelf solutions out there?

  2. Voluum
  3. Graybeard

    Graybeard Well-Known Member affiliate

    One way is to set a session (or referral) cookie with some identifier then use server globals in PHP
    $id=""; //fill this part
    header("Set-Cookie: 1trans=$id; Max-Age=2147483647; path=/; \
    domain=.example.com; HttpOnly; SameSite=Strict"); \
    //requires php7.3+  for ; HttpOnly; SameSite=Strict" Chrome will require that to cache it soon :P
    $_COOKIE['1trans'] //referrer captures the value
    However, good luck doing this with WierdPress ...
    Maybe, there is a plugin to do this and add the parameters and variables to the link IDK
    You could probably get this to work some how with JavaScript too.
    As far as tracking conversions add r=1234 to the outbound URL and that value should be captured (probably) in the lead stats?
    Trevor Butler likes this.
  4. Graybeard

    Graybeard Well-Known Member affiliate

    Post Affiliate Pro
    this may work with your weirdpress install

    Contributors & Developers
    “Post Affiliate Pro” is open source software. The following people have contributed to this plugin.