Articles on: CMS Overview

[WooCommerce/WordPress] Setting up AdPage Pixel + DataLayer

With the WooCommerce plugin from AdPage Tagging, you can easily activate the DataLayer. At the end of this article, you can find which events & parameters are supported.

Go to your WordPress/WooCommerce website and log in. Then, go to plugins.
Install and activate the following plugin: AdPage Tagging.



Then, go to settings and click on “Tagging (GTM Server Side).”



Make sure to add your Server container URL, GTM ID, and enable Cookiekeeper (cookie recovery). To find your Server Container URL, refer to this article, and for the GTM ID, you can go to this article:
Find Google Tag Manager ID
Finder Server Container URL

Now that these have been added, you can test the WordPress/WooCommerce plugin. Use the Analytics Debugger plugin https://chromewebstore.google.com/detail/analytics-debugger/ilnpmccnfdjdjjikgkefkcegefikecdc or the DataLayer checker: https://chromewebstore.google.com/detail/datalayer-checker/ffljdddodmkedhkcjhpmdajhjdbkogke



The other standard eCommerce events are also fired.



You can find the available events & parameters below:

trytagging_user_data
This event is fired on all pages with the following parameters:
marketing._ga
marketing.user_id
marketing.client_id
marketing.session_id
marketing.session_count
marketing.fbp
marketing.user_agent
device.screen_resolution
device.viewport_size
device.encoding
device.language
device.colors
gtm.uniqueEventId

trytagging_view_item_list
This event is fired when the visitor views multiple products with the following parameters:
parameters from trytagging_view_item_list
ecommerce.currency
ecommerce.items.#.id
ecommerce.items.#.index
ecommerce.items.#.item_brand
ecommerce.items.#.item_category
ecommerce.items.#.item_id
ecommerce.items.#.item_list_name
ecommerce.items.#.item_name
ecommerce.items.#.price
ecommerce.items.#.product_type
ecommerce.items.#.sku
ecommerce.items.#.stocklevel
ecommerce.items.#.stockstatus

trytagging_view_item
This event is fired when the visitor views a product with the following parameters:
parameters from trytagging_view
ecommerce.currency
ecommerce.value
ecommerce.items.#.item_brand
ecommerce.items.#.item_category
ecommerce.items.#.item_id
ecommerce.items.#.item_name
ecommerce.items.#.item_sku
ecommerce.items.#.price

trytagging_add_to_cart
This event is fired when the visitor adds a product to the cart with the following parameters:
parameters from trytagging_add_to_cart
ecommerce.currency
ecommerce.value
ecommerce.items.#.item_brand
ecommerce.items.#.item_category
ecommerce.items.#.item_id
ecommerce.items.#.item_name

Updated on: 16/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!