How to implement a Google Adwords “conversion pixel” using ajax on a submit button (no “thank you” page)

前端 未结 4 374
名媛妹妹
名媛妹妹 2020-12-08 15:30

I want to implement an adwords \"conversion pixel\" script - this is the script:




        
4条回答
  •  误落风尘
    2020-12-08 16:03

    Google supports async conversions:

    https://developers.google.com/adwords-remarketing-tag/asynchronous/

    Load this script in your html file:

    
    

    And then call the function google_trackConversion when your user clicks the button:

    window.google_trackConversion({
        google_conversion_id: 1234,
        google_remarketing_only: true,
        // ...
    });
    

提交回复
热议问题