Excecute Google Adwords script on form submission

  • Posted in : BookCard WP
  • elavd
    Participant

    I would like to count the conversions (people that come to my site and contact me via Google Adwords) by using a custom code that Google gives me.

    This code normally goes to a “Thank you” page when someone submits the contact form.

    Since this theme doesn’t have a “thank you” page, but uses AJAX to show that the form was submitted, have you any solution for that?

    PS: I found this relative article, but I am not sure if it will work../

    serkan
    Moderator

    Hi @elavd;
    In the article’s comment ppl say that it work fine. Please let me know when you tried the solution.
    Thanks

    elavd
    Participant

    I have tried to embed the code of the article mentioned above, on the “success” part of the code of send-mail.js, but with no luck.

    As I am not familiar with Ajax, can you help me call this function when the message is sent?

    function ppcconversion() {

    var iframe = document.createElement('iframe');

    iframe.style.width = '0px';

    iframe.style.height = '0px';

    document.body.appendChild(iframe);

    iframe.src = 'http://www.yourdomain.com/path_to_file_with_code';

    };

    serkan
    Moderator

    Hi @elavd;
    I can only try to help you all on simple css customizations which doesn’t need to change the core theme files and doesn’t take much time. If you are not familiar to wordpress coding you may consider hiring an expert at envato studio.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register