an
groups-icon

Would Like to Pass Keyword in Url String from Coupons to Affiliate Link

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Tarun Kumar
    1 points
    Beginner

    Hi,

    We are trying to pass a value from our website to client’s page but we are unable to do so as the value is not being passed due to having outlink which redirects user from our page to client.

    So basically If i clearify it in this way >>

    this is my website >> http://www.dealhopp.in/store/flipkart-online-shopping/?gclid=Keyword

    I have passed the value in gclid id sting which is ‘Keyword’

    and captured in my landing page by using this php code >>
    <script type=”text/javascript”>
    function setCookie(name, value, days){
    var date = new Date();
    date.setTime(date.getTime() + (days*24*60*60*1000));
    var expires = “; expires=” + date.toGMTString();
    document.cookie = name + “=” + value + expires;
    }
    function getParam(p){
    var match = RegExp(‘[?&]’ + p + ‘=([^&]*)’).exec(window.location.search);
    return match && decodeURIComponent(match[1].replace(/\+/g, ‘ ‘));
    }
    var gclid = getParam(‘gclid’);
    if(gclid){
    var gclsrc = getParam(‘gclsrc’);
    if(!gclsrc || gclsrc.indexOf(‘aw’) !== -1){
    setCookie(‘gclid’, gclid, 90);
    }
    }
    </script>

    Now the basic challenge is, how do i pass this value to clients page as whenever i click on the deals or coupons it first redirects to this URL >>

    URL >> https://www.dealhopp.in/out/4943/link/

    where it is not getting passed anything..

    Is there any way in which i make this page static rather than dynamic and pass the variable to this page before passing it to the 3rd party page.

    Looking for an urgent help here.

    June 8, 2017 at 7:08 am
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 9, 2017 at 12:18 am
  • Tarun Kumar
    1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 9, 2017 at 7:01 am
  • Tarun Kumar
    1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 9, 2017 at 7:05 am
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 9, 2017 at 4:03 pm
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 10, 2017 at 9:23 pm

528

Views

5

Replies