Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #960386

    Hello,

    I have searched forum with similar problem, but couldn’t find a way how to deal with it. So I have 2 codes to enter in my website. One is that i have to insert between <head> tags:

    <!– Global site tag (gtag.js) – Google AdWords: 876082425 –>

    <script async src=”https://www.googletagmanager.com/gtag/js?id=AW-876082425″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘AW-876082425’);
    </script>

    And another is this one:

    <!– Event snippet for Mygtuko paspaudimas conversion page
    In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. –>
    <script>
    function gtag_report_conversion(url) {
    var callback = function () {
    if (typeof(url) != ‘undefined’) {
    window.location = url;
    }
    };
    gtag(‘event’, ‘conversion’, {
    ‘send_to’: ‘AW-876082425/tnZBCLqwjYMBEPnp36ED’,
    ‘event_callback’: callback
    });
    return false;
    }
    </script>

    Where should I put each of these?

    #960622

    Hey mantas0527,
    Please try placing both in Enfold Theme Options > Google Services > Google Analytics Tracking Code box.
    The box inserts any code into the head of your site.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.