Title: Data Layer Variable &#8211; Purchased Article List
Last modified: April 6, 2022

---

# Data Layer Variable – Purchased Article List

 *  [niclasburger](https://wordpress.org/support/users/niclasburger/)
 * (@niclasburger)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/data-layer-variable-purchased-article-list/)
 * Dear readers,
 * I have a question regarding a data layer configuration in WooCommerce. Of course
   I’m using the “Google Tag Manager for WordPress” PlugIn by Thomas Geiger. The
   basic setup worked fine as usual, but right now I’m struggling with adding a 
   new data layer variable at the check out page.
 * For this client I’m using a retargeting plattform, which requires 5 different
   conversion tags (product page, cart page, checkout etc.). On the checkout page
   the required tag looks like this:
 * <script src=”[https://d.hyj.mobi/conv?cid=xxx&orderId=](https://d.hyj.mobi/conv?cid=xxx&orderId=){{
   OrderID}}&amount={{PurchaseValue}}&products={{ProductID – Checkout}}”></script
   >
 * The variable {{ProductID – Checkout}} is configured by myself, but I’m wondering
   how I can setup a WooCommerce data layer variable, which transfers the purchased
   product_ids within the Tag Manager PlugIn.
 * Normally I use Shopware for E-Commerce clients and the configuration of this “
   articlelist” is quite easy, when using the plugin “Tag Manager” by Webmatch GmbH.
 * In this plugin I usually configure the variable “articlelist” with the following
   value:
 * [{foreach $sBasket.content as $sArticle}{$sArticle.ordernumber|escape}{if !$sArticle@last},{/
   if}{/foreach}]
 * Does anybody here have an idea, how I can setup this “articlelist” variable in
   WooCommerce and then how I can correctly transfer this variable in the Tag Manager
   Conversion tag?
 * Thank you very much in advance!
    -  This topic was modified 4 years, 1 month ago by [niclasburger](https://wordpress.org/support/users/niclasburger/).

The topic ‘Data Layer Variable – Purchased Article List’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

 * [datalayer](https://wordpress.org/support/topic-tag/datalayer/)
 * [Tag Manager](https://wordpress.org/support/topic-tag/tag-manager/)

 * 0 replies
 * 1 participant
 * Last reply from: [niclasburger](https://wordpress.org/support/users/niclasburger/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/data-layer-variable-purchased-article-list/)
 * Status: not resolved