Magento Data Layer Extension from TAGGRS
Do you have a Magento 2 webshop? Then it is essential to collect and analyze detailed data to improve your webshop using a Data Layer. The TAGGRS Magento Data Layer Extension makes this easier than ever. Discover how you can get valuable insights without being a coding expert.
Download the free Magento Data Layer Extension from TAGGRS.
About the TAGGRS Magento Data Layer Extension.
The TAGGRS Magento 2 Data Layer Extension helps you set up a working data layer in just a few clicks, allowing you to measure user interactions of your Magento website. General information:
- Google Tag Manager Data Layer: Integrate easily with Google Tag Manager.
- GA4 Data Layer Protocol: The Magento data layer extension is based on the GA4 Protocol
- Server Side Tracking Compatibility: Supports Server Side Tracking.
- Enhanced Conversions: Includes enhanced conversions.
- New vs. Existing Customers: Keep a distinction between new and returning customers.
What events can you measure?
These are the key events you can now measure with the TAGGRS Magento Data Layer Extension.
- view_item_list
- view_item
- add_to_cart
- remove_from_cart
- view_cart
- select_promotion
- start_checkout
- purchase
More information can be found on our github.
What is a Data Layer?
A data layer acts as an interpreter between your Web site and analytics or marketing tools such as Google Tag Manager (GTM). It collects data about user interactions, such as page views, products added and purchases completed, and stores it in a structured way. With this data, you can then create tags and triggers in turn that will forward this data to your preferred platforms such as Google Analytics and Facebook. Don't have a data layer on your website? Then you can't measure certain e-commerce events that help you perform accurate analytics and optimize marketing strategies.
How Google Tag Manager Uses the Data Layer.
Google Tag Manager uses the information in the data layer to trigger triggers and fire tags. This allows you to collect and analyze data without direct changes to website code.
TAGGRS Set up Magento Data Layer Extension
Below we show you step by step how to install the TAGGRS Extension in Magento 2 and test it in Google Tag Manager.
1. Download the Magento Extension
Download the TAGGRS Magento Data Layer Extension from Github and install it on your Magento website.
2. Install the Magento extension on your website.
Follow the following steps to install the TAGGRS Magento Extension on your website.
Enable your Magento store's maintenance mode.
bin/magento maintenance:enable
Add the extension using Composer.
composer require taggrs/magento2-data-layer
Activate the module and update the database.
bin/magento setup:upgrage
Compile the dependency injection.
bin/magento setup:di:compile
Distribute static content.
bin/magento setup:di:compile
Turn off the store's maintenance mode.
bin/magento maintenance:disable
3. Open the Magento Extension
After installation within the Magento Admin, go to Store and choose Configuration here.
4. Google Tag Manager settings
Next, select the TAGGRS Data Layer extension. Then you can fill in the following points. Note that not all points are mandatory.
- Google Tag Manager Code: enter your web container ID here
- Google Tag Manager URL: Enter your subdomain here including https://
- Measurement API secret: Do you want to use Webhooks? With the measurement API, you can close the gap of datalayer event on thank you page by sending a webhook to GA4. This makes GA4 100% accurate in terms of ecommerce. This then only involves the purchase event. Check out a tutorial on Measurement API Secret here
- Measurement API - Measurement ID: GA4 measurement stream code; Example: G-1234567890
- Debug mode: Once you turn this on, the datalayer is displayed within your element inspect console. This allows you to easily see what you are passing to GTM.
Then click Save Config to save the changes.
5. Add events in data layer extension
Next, within the extension, you can choose which events you would like to measure by selecting Yes and No. Then click Save Config to save the changes.
6. Data layer testing in Google Tag Manager
We will now test if the data layer actually works. Go to the Google Tag Manager preview mode , create an event, then click on data layer and here you will see your Magento data coming in nicely structured.
Data Sent to Analysis Platforms
- Make sure all tags and triggers in Google Tag Manager are set up correctly to forward data to your analytics platforms.
- Don't know how to do this? Consult the implementation guides and videos within the TAGGRS software for more information. You can register for free (no credit card required).
Conclusion
The TAGGRS Magento Data Layer Extension provides a solution for collecting and analyzing valuable customer data. With this tool, you can obtain detailed and accurate data that is crucial for making informed decisions and optimizing your webshop. Increase your success and exploit the full potential of your Magento store with the TAGGRS extension. Also check out the rest of our TAGGRS Tools.