• Resolved LogoLogics

    (@logologics)


    Hi,

    I intent to use this https://logologics.nl/goedkoop-website-laten-maken/ as a landingpage in my Adwords campagne.

    I added the remarketing and Analytics tracking codes in my Storefront theme’s child theme correctly. If I check the code with Google tag manager, it says there are no tracking codes. However if I deactivate Elementor, google tag manager is happy and shows both my remarketing and Analytics codes.

    Here is my server info from elementor:

    == Server Environment ==
    Operating System: Linux
    Software: Apache
    MySQL version: 10.0.31
    PHP Version: 7.0.21
    PHP Max Input Vars: 10000
    PHP Max Post Size: 128M
    GD Installed: Yes
    Elementor Library: Connected

    == WordPress Environment ==
    Version: 4.8
    Site URL: https://logologics.nl/goedkoop-website-laten-maken
    Home URL: https://logologics.nl/goedkoop-website-laten-maken
    WP Multisite: No
    Max Upload Size: 128 MB
    Memory limit: 512M
    Permalink Structure: /%postname%/
    Language: nl
    Timezone: Europe/Amsterdam
    Debug Mode: Inactive

    == Theme ==
    Name: Storefront Blank Child Theme
    Version: 1.0
    Author: PootlePress
    Child Theme: Yes
    Parent Theme Name: Storefront
    Parent Theme Version: 2.2.4
    Parent Theme Author: WooThemes

    == User ==
    Role: administrator
    WP Profile lang: nl_NL
    User Agent: Mozilla/5.0 (Windows NT 10.0; rv:54.0) Gecko/20100101 Firefox/54.0

    == Active Plugins ==
    Elementor
    Version: 1.5.5
    Author: Elementor.com

    == Debug ==
    Errors: There are no errors to display

    I am new to Elementor but loving it so far. I do not have this issue when using for example visual composer or SiteOrigin pagebuilders and am not a newbie to implementing tracking codes. Can you help solve this so I can keep using Elementor and keep google tag manager happy?

    Thanks,
    Annie

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ArielK

    (@arielk-1)

    Where exactly do you embed Google code on your site?

    Header.php?
    Footer.php?

    Please upload the file with the code to https://pastebin.com/ and paste the link here, so we can help you.

    Thread Starter LogoLogics

    (@logologics)

    Hi ArielK,

    This is the link: https://pastebin.com/HgUVWFE1

    The codes are in my child theme’s footer.php
    The way the code is implemented should be good, because it works as long as Elementor is not active and in other sites where no Elementor is used?

    Hope you can help.

    Thanks,
    Annie

    Plugin Author ArielK

    (@arielk-1)

    Can you share with us your footer code?

    Please go to your child theme and copy the all code from footer.php (included the Google code) into pastebin.

    I want to check it.

    Thread Starter LogoLogics

    (@logologics)

    Here we go: https://pastebin.com/16Xx6yxn

    Thanks,
    Annie

    Thread Starter LogoLogics

    (@logologics)

    Quick update. I tried the ” Insert headers and footers” plugin, and if I insert it there, Google tag manager is happy, even with Elementor active!

    Still wondering though why the manual way ( I try to avoid plugins if possible ) suddenly does not work ONLY if Elementor is in the mix.

    Plugin Author ArielK

    (@arielk-1)

    Do you set the page as a Elementor Canvas template or as a default page template?

    Thread Starter LogoLogics

    (@logologics)

    Aha! Immediately tested it and indeed, as soon as I set my homepage to default template instead of canvas, tag manager recognizes the tracking code!

    Strange ( to me ) why the canvas page does not block the code as soon as I use that plugin? It is not the end of the world, but if possible I would like to avoid having to use a plugin and set page to canvas ( I did fall in love almost instantly when trying out Elementor haha )

    Thanks,
    Annie

    Plugin Author ArielK

    (@arielk-1)

    Hi @logologics

    Elementor Canvas does not load the header.php or footer.php files, so if you embed your code in these files, it will not load on the page.

    The solution is to use a plugin like “SOGO Add Script Header Footer” or something similar to embed the code on the page by wp_head or wp_footer.

    @prmyapps You’re right, we’ll add a comment for this.

    Thanks

    Thread Starter LogoLogics

    (@logologics)

    Hi Ariel,

    Now that you mention it, makes sense as Canvas page does not have the default header and footer! Plugin it is then!:-)

    Thanks!
    Annie

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Google analytics and remarketing code blocked by Elementor?’ is closed to new replies.