Google Analytics for v2

Home Forums Quform WordPress Google Analytics for v2

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28549
    whisper
    Participant

    Hello and thanks for your time 🙂

    I am trying to add Google Analytics code to my form, I have this code – is it correct to place this in custom CSS/javascript area?
    All the info I find is for v1 and I have v2

    <script>
    function gtag_report_conversion(url) {
    var callback = function () {
    if (typeof(url) != ‘undefined’) {
    window.location = url;
    }
    };
    gtag(‘event’, ‘conversion’, {
    ‘send_to’: ‘AW-932811566/rq5qCILOl5UBEK6m5rwD’,
    ‘event_callback’: callback
    });
    return false;
    }
    </script>

    thanks heaps

    #28551
    whisper
    Participant

    Forgot to mention I just need to add this to the send button, is this OK?
    And is this code complete, do I need to add any other code to the website or will adding this code to my form work OK?

    tyvm 🙂

    • This reply was modified 5 years, 1 month ago by whisper.
    #28585
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #28593
    whisper
    Participant

    Awesome..thankyou for your time and reply 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy