Using the Google Tag Manager Data Layer with WordPress // Reporting on content and logged in users

Using the Google Tag Manager Data Layer with WordPress // Reporting on content and logged in users

Learn how to use the Google Tag Manager data layer with your WordPress site. By using a WordPress plugin, you can send extra data to Google Analytics for more insights about your content, blog posts, logged in users, and more. In this video, you will learn how to get started with the Google Tag Manager plugin for WordPress, how to identify information in the data layer, and how to use a variable inside Google Tag Manager to send details from the data layer to Google Analytics 4 (GA4).

JUMP TO A SECTION IN THIS VIDEO:
0:27 Install the WordPress plugin
1:09 Configure the WordPress plugin
3:04 View the data layer on WordPress
4:34 Create variables in Google Tag Manager
6:12 Add variables to Google Analytics tag
7:22 Preview the changes
7:56 Checking with Tag Assistant
8:29 DebugView in Google Analytics
8:53 Registering custom parameters
10:03 Conclusion

YOUR EXTRA RESOURCES:
○ Google Tag Manager course (paid) –https://www.lovesdata.com/courses/google-tag-manager
○ Google Tag Manager tutorial series –https://www.youtube.com/playlist?list=PL1vNrn711L8SnLqvJ_W0sofsVST7ldXXV />○ GA4 Mini-Course (paid) –https://www.lovesdata.com/courses/google-analytics-4-mini-course
○ Getting started with GA4 –https://youtu.be/iJyGEuiIjOk

#GoogleTagManager #WordPress #GoogleAnalytics4

My email updates: https://www.lovesdata.com/email-newsletter
My courses: https://www.lovesdata.com/courses
My book: https://amzn.to/2FTQ8SX

SAY HELLO!
○ My blog – https://www.lovesdata.com/blog-welcome
○ Contact me – https://www.lovesdata.com/contact-us

TOOLS I USE AND RECOMMEND:
○ Email platform – https://lovesdata.co/zrLd7
○ Course platform – https://lovesdata.co/2Zzfq
○ Data connector – https://lovesdata.co/oOWkI

Subscribe for more videos: http://www.youtube.com/subscription_center?add_user=lovesdata

10 thoughts on “Using the Google Tag Manager Data Layer with WordPress // Reporting on content and logged in users”

  1. Hi Benjamin, thanks for another great video! I’ve not been able to generate a data layer from WooCommerce to pass e-commerce data back to Analytics via GTM. I currently have GTM implemented using the Code Snippets plugin. Can this GTM plugin pass WooCommerce data to a data layer too?

  2. Hello, hope you are doing well. Your videos are great help for me in understanding complex Tag and Conversion issues but I am facing a problem in Tawk.to conversion. 1st problem is if I use chat started conversion API

    <script>

    Tawk_API = Tawk_API || {};

    Tawk_API.onChatStarted = function(){

    dataLayer.push({'event':'chat_started'});

    };

    </script>.

    It records a conversion even if I send a message to the customer from my end.

    But if you use this API

    <script type="text/javascript">

    Tawk_API.onChatStarted = function(){

    if(Tawk_API.isVisitorEngaged()){

    window.dataLayer = window.dataLayer || [];

    window.dataLayer.push({'event': 'Chat Started'});

    }

    };

    </script>

    This way it records a conversion when the customer initiates the chat but conversion stops working if I send a message to the customer before he initiates the chat.

    The other thing is that if I try to work around by recording a conversion by Chat Maximized API

    <script>

    Tawk_API = Tawk_API || {};

    Tawk_API.onChatMaximized = function(){

    dataLayer.push({'event':'chat_Maximized'});

    };

    </script>.

    It works only on Desktop but won't record a conversion from Mobile (you have to check it from real mobile not debugging mobile mode from desktop) On Mobile when i click on Tawk Chat it changes URL to "/#max-widget" without any redirect.

    Can you please help me out to figure out how to tackle this problem.

    Best Regards

Leave a Comment

Your email address will not be published.