Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #909917

    Hello,
    I’m using the Enfold theme.

    I woud like to put google tag manager tag, google remarketing and conversion tracking code into head and body section as described by Adwords to put the new snippet codes but I don’t have the option in Appereance and Editor to put general tag into head section and additional tag into body section? What do you suggest me to use a plugin or do you have a better idea?

    Best regards,
    Daniel

    #910022

    Hey dadisk8,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #910648

    Hey Basilis,

    thank you for the reply, but I’m really satisfied that this theme doesn’t have option to put the code into the body or head section such all other themes.

    Best regards,
    Daniel

    #910907

    Hi Daniel,

    Please send us the code and where it should go and we’ll give you functions to use. If you only need to place it in the head then you can paste the code in the Analytics field under Enfold->Google Services.

    Best regards,
    Rikard

    #974652
    
    /**
     * Google Tag Manager Body Script
     */
    function google_tag_manager_body_code() { ?>
        // Body Code
    <?php }
    add_action( 'ava_after_body_opening_tag', 'google_tag_manager_body_code', 1);
    
    /**
     * Google Tag Manager Head Script
     */
    function google_tag_manager_head_code(){ ?>
        // Head Code
    <?php }
    add_action('wp_head', 'google_tag_manager_head_code', 1);
    

    Put this in your functions.php of your child theme.

    Best,
    Patrick

    #974967

    Hi,

    Thank you very much for sharing the snippet, we appreciate it.

    Best regards,
    Basilis

    #979985

    I wish to add to the requests for Google Tag Manager support. It is the most significant missing feature in Enfold.

    #980313

    Hi,

    You can use the code provided previously, to get going with the task :)

    Best regards,
    Basilis

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