google Adwords conversion script

前端 未结 4 1519

I have a form, that after submit the form I want to run the script of google Adwords conversion.

I\'m using ajax and jQuery:

var dataString = \'name=         


        
相关标签:
4条回答
  • 2020-12-31 21:44

    I think real conversion appears only after you actually use AdWords (click-through and make conversion) - so that is why you get conversions in AdWords based on number of clicks from AdWords and not from all the sources.

    Does it make sense? :)

    0 讨论(0)
  • 2020-12-31 21:46

    Have a look at Event tracking, you can link custom events tracked from your website to your google analytics, then link everything together with adwords.

    Video by google

    Events tracking guide

    Hope these links will help you out.

    0 讨论(0)
  • 2020-12-31 21:47

    I just send off the pixel request myself. Something like the following works for me:

    var img = document.createElement("img");
    var goalId = 123456;
    var randomNum = new Date().getMilliseconds();
    var value = 100;
    var label = "label";
    var url = encodeURI(location.href);
    
    var trackUrl = "http://www.googleadservices.com/pagead/conversion/"+goalId+"/?random="+randomNum+"&value="+value+"&label="+label+"&guid=ON&script=0&url="+url;
    img.src = trackUrl;
    document.body.appendChild(img);
    

    That at least registers the conversion, but I'm not sure if there are any issues becuase the actual tracking script isn't loaded.

    0 讨论(0)
  • 2020-12-31 21:52

    Just a guess, but may be conversion script expects to see it's variables in Global scope. In your code you define it in local scope - under callback

    So instead of var google_... write window.google_...

    HTH

    0 讨论(0)
提交回复
热议问题