How to setup right code within wordpress theme and for posts and pages
-
Hi support team,
I kindly ask you for help in may some stupid questions and settings, because I am not a developer.
1. About Setup and code implementation within the theme.
As my theme offers within the header section no beginning <body> within the header. My theme called geotheme enable the use within themes admin backend a special container which add unique customer codes into the header or footer section.
There I placed the full Google tag manager code (created from GTM) and added also your code snippet <?php if ( function_exists( ‘gtm4wp_the_gtm_tag’ ) ) { gtm4wp_the_gtm_tag(); } ?> at the buttom of this container.Q 1. Do I need to implement both codes – GMT pure code AND add your code snipped too into this section, or
Q. 1.1 Do I only need to implement your code – <?php if ( function_exists( ‘gtm4wp_the_gtm_tag’ ) ) { gtm4wp_the_gtm_tag(); } ?> – without GMT pure code form google into this container to make sure no double codes are irritating my site?2. About WPMU multisite usability and settings
As you described you offer this plugin as an additional possibility to increase information’s to be selected of the website.
Q 2.1 How am I able to setup your plugin within a multisite environment?
Q 2.2 Do I need to place the same code to each sub-site with different GMT ID to differ?3. About changing event names (info from your description)
There is only one thing you have to change: event names:
productClick -> gtm4wp.productClick
addToCart -> gtm4wp.addProductToCart
removeFromCart -> gtm4wp.removeProductFromCart
promotionClick -> gtm4wp.promotionClickI do not understand what you are meaning with that. I can get out of this it has to do with changes of woocommerce shoping cart to be implemented over there – right?.
As in my theme there will be an option to buy advertisements. For this I need to implement the right conversion codes to analyze purchases.
Q 3.1 Are these such events from what you are talking about?
Q 3.2 Where do I place the GMT conversion codes for such events by using your plugin?4. About adding code snippets
I thought using your plugin enables the possibility to add conversion codes within pages and posts with the goal to enable more analyses within GTM and less coding or adding codes within pure site structure.
What I want to do is, to implement 3 kind of conversion codes to be able to analyze and collect more conversion details when users are a.) register at site, b.) register for newsletter or c.) purchase a product.
Q 4.1 Where am I able to implement these needed things to enable a conversion tracking?
Q 4.2 Does your plugin do not enable code implementations within pages or posts?Regards,
Alex
https://wordpress.org/plugins/duracelltomi-google-tag-manager/
The topic ‘How to setup right code within wordpress theme and for posts and pages’ is closed to new replies.