[Skip to main content](#vessel-content)

#   How to get variables for tracking?

##

- **[yolknet\_old](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile")**
- [![yolknet&#95;old's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile") Topic Author
- [ Offline](/forum/user/9711-yolknet-old)

Less More

- Posts: 13
- Thank you received: 0
-
-

12 years 7 months ago [\#150173](#150173) by [yolknet\_old](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile")  *[How to get variables for tracking?](/forum/27-checkout/867037-how-to-get-variables-for-tracking#150173 "-- HikaShop version -- : Essential 2.2.2 -- Joomla version -- : 3.2.3  In Google Analytics we would like to track the conversion of items in orders. In a tutorial I found the code below that should be placed on the thank-you-page. But how do I get the variables like transfer ID or the total price?  &#95;gaq.push(&#91;'&#95;addTrans', '',                                   // Ordernummer '',                             // Naam webwinkel '',                               // Totaalbedrag bestelling '',                                 // BTW '',                        // Verzendkosten '',                           // Stad '',                        // Provincie ''                     // Land &#93;);  foreach ($items as $item} { &#95;gaq.push(&#91;'&#95;addItem',  '',                                  // Ordernummer '',                     // Artikelnummer '',                           // Productnaam '',                      // Categorie '',                            // Productprijs ''                        // Aantal &#93;); }")* was created by *[yolknet\_old](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile")*

-- HikaShop version -- : Essential 2.2.2
-- Joomla version -- : 3.2.3

In Google Analytics we would like to track the conversion of items in orders. In a tutorial I found the code below that should be placed on the thank-you-page. But how do I get the variables like transfer ID or the total price?

_gaq.push(['_addTrans',
'&lt;?php echo trans_id; ; ?&gt;',                                   // Ordernummer
'&lt;?php echo 'Webwinkel Lotje'; ?&gt;',                             // Naam webwinkel
'&lt;?php echo trans_total; ?&gt;',                               // Totaalbedrag bestelling
'&lt;?php echo trans_tax; ?&gt;',                                 // BTW
'&lt;?php echo trans_shipping; ?&gt;',                        // Verzendkosten
'&lt;?php echo shipping_city; ?&gt;',                           // Stad
'&lt;?php echo shipping_state; ?&gt;',                        // Provincie
'&lt;?php echo shipping_country; ?&gt;'                     // Land
]);

foreach ($items as $item} {
_gaq.push(['_addItem', 
'&lt;?php echo trans_id; ?&gt;',                                  // Ordernummer
'&lt;?php echo $item_sku_code; ?&gt;',                     // Artikelnummer
'&lt;?php echo $item_name; ?&gt;',                           // Productnaam
'&lt;?php echo $item_category; ?&gt;',                      // Categorie
'&lt;?php echo $item_price; ?&gt;',                            // Productprijs
'&lt;?php echo $item_quantity; ?&gt;'                        // Aantal
]);
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzAzNy1ob3ctdG8tZ2V0LXZhcmlhYmxlcy1mb3ItdHJhY2tpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

12 years 7 months ago [\#150182](#150182) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to get variables for tracking?](/forum/27-checkout/867037-how-to-get-variables-for-tracking#150182 "-- HikaShop version -- : Essential 2.2.2 -- Joomla version -- : 3.2.3  In Google Analytics we would like to track the conversion of items in orders. In a tutorial I found the code below that should be placed on the thank-you-page. But how do I get the variables like transfer ID or the total price?  &#95;gaq.push(&#91;'&#95;addTrans', '',                                   // Ordernummer '',                             // Naam webwinkel '',                               // Totaalbedrag bestelling '',                                 // BTW '',                        // Verzendkosten '',                           // Stad '',                        // Provincie ''                     // Land &#93;);  foreach ($items as $item} { &#95;gaq.push(&#91;'&#95;addItem',  '',                                  // Ordernummer '',                     // Artikelnummer '',                           // Productnaam '',                      // Categorie '',                            // Productprijs ''                        // Aantal &#93;); }")*

Hi,

You could simply configure the google analytics plugin that is available in the Business edition for that:
[ www.hikashop.com/support/support/documen...oogle-analytics.html](http://www.hikashop.com/support/support/documentation/98-integration-with-google-analytics.html)
Otherwise, here is some information on adding custom code for tracking:
[ www.hikashop.com/forum/4-how-to/68067-tr...get-cart-values.html](http://www.hikashop.com/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzAzNy1ob3ctdG8tZ2V0LXZhcmlhYmxlcy1mb3ItdHJhY2tpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yolknet\_old](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile")**
- [![yolknet&#95;old's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile") Topic Author
- [ Offline](/forum/user/9711-yolknet-old)

Less More

- Posts: 13
- Thank you received: 0
-
-

12 years 7 months ago [\#150910](#150910) by [yolknet\_old](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile")  Replied by *[yolknet\_old](/forum/user/9711-yolknet-old "View yolknet&#95;old's Profile")* on topic *[How to get variables for tracking?](/forum/27-checkout/867037-how-to-get-variables-for-tracking#150910 "-- HikaShop version -- : Essential 2.2.2 -- Joomla version -- : 3.2.3  In Google Analytics we would like to track the conversion of items in orders. In a tutorial I found the code below that should be placed on the thank-you-page. But how do I get the variables like transfer ID or the total price?  &#95;gaq.push(&#91;'&#95;addTrans', '',                                   // Ordernummer '',                             // Naam webwinkel '',                               // Totaalbedrag bestelling '',                                 // BTW '',                        // Verzendkosten '',                           // Stad '',                        // Provincie ''                     // Land &#93;);  foreach ($items as $item} { &#95;gaq.push(&#91;'&#95;addItem',  '',                                  // Ordernummer '',                     // Artikelnummer '',                           // Productnaam '',                      // Categorie '',                            // Productprijs ''                        // Aantal &#93;); }")*

Thank you for the links. In the Business Edition is a Google plugin, but we are using the Essential version.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzAzNy1ob3ctdG8tZ2V0LXZhcmlhYmxlcy1mb3ItdHJhY2tpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#150912](#150912) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to get variables for tracking?](/forum/27-checkout/867037-how-to-get-variables-for-tracking#150912 "-- HikaShop version -- : Essential 2.2.2 -- Joomla version -- : 3.2.3  In Google Analytics we would like to track the conversion of items in orders. In a tutorial I found the code below that should be placed on the thank-you-page. But how do I get the variables like transfer ID or the total price?  &#95;gaq.push(&#91;'&#95;addTrans', '',                                   // Ordernummer '',                             // Naam webwinkel '',                               // Totaalbedrag bestelling '',                                 // BTW '',                        // Verzendkosten '',                           // Stad '',                        // Provincie ''                     // Land &#93;);  foreach ($items as $item} { &#95;gaq.push(&#91;'&#95;addItem',  '',                                  // Ordernummer '',                     // Artikelnummer '',                           // Productnaam '',                      // Categorie '',                            // Productprijs ''                        // Aantal &#93;); }")*

Hi,

If you really need this plugin, you can upgrade your version:
[ www.hikashop.com/extensions/upgrade-my-version.html](http://www.hikashop.com/extensions/upgrade-my-version.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzAzNy1ob3ctdG8tZ2V0LXZhcmlhYmxlcy1mb3ItdHJhY2tpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.081 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
