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

#   Hikashop Analytics not firing Transaction data for guest orders

##

- **[olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")**
- [![olaf@zuurstof.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile") Topic Author
- [ Offline](/forum/user/47570-olaf-zuurstof-nl)

Less More

- Posts: 9
- Thank you received: 0
-
-

7 years 1 month ago [\#311623](#311623) by [olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")  *[Hikashop Analytics not firing Transaction data for guest orders](/forum/27-checkout/898414-hikashop-analytics-not-firing-transaction-data-for-guest-orders#311623 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.10 -- Browser(s) name and version -- : Google Chrome 77 -- Error-message(debug-mod must be tuned on) -- : None  The webshop allows customers to purchase without registration. All runs fine, except for the Transaction data in Google Analytics. Orders created and completed by 'guests' are not send to Analytics, all other orders are...  Please help us out.  Kind regards, Olaf")* was created by *[olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.3.10
-- Browser(s) name and version -- : Google Chrome 77
-- Error-message(debug-mod must be tuned on) -- : None

The webshop allows customers to purchase without registration.
All runs fine, except for the Transaction data in Google Analytics. Orders created and completed by 'guests' are not send to Analytics, all other orders are...

Please help us out.

Kind regards,
Olaf

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5ODQxNC1oaWthc2hvcC1hbmFseXRpY3Mtbm90LWZpcmluZy10cmFuc2FjdGlvbi1kYXRhLWZvci1ndWVzdC1vcmRlcnM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

7 years 1 month ago [\#311626](#311626) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Analytics not firing Transaction data for guest orders](/forum/27-checkout/898414-hikashop-analytics-not-firing-transaction-data-for-guest-orders#311626 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.10 -- Browser(s) name and version -- : Google Chrome 77 -- Error-message(debug-mod must be tuned on) -- : None  The webshop allows customers to purchase without registration. All runs fine, except for the Transaction data in Google Analytics. Orders created and completed by 'guests' are not send to Analytics, all other orders are...  Please help us out.  Kind regards, Olaf")*

Hi,

Could you provide a screenshot of the settings of your HikaShop google analytics plugin ? (you can hide the account data on the screenshot)

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

- **[olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")**
- [![olaf@zuurstof.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile") Topic Author
- [ Offline](/forum/user/47570-olaf-zuurstof-nl)

Less More

- Posts: 9
- Thank you received: 0
-
-

7 years 1 month ago [\#311665](#311665) by [olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")  Replied by *[olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")* on topic *[Hikashop Analytics not firing Transaction data for guest orders](/forum/27-checkout/898414-hikashop-analytics-not-firing-transaction-data-for-guest-orders#311665 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.10 -- Browser(s) name and version -- : Google Chrome 77 -- Error-message(debug-mod must be tuned on) -- : None  The webshop allows customers to purchase without registration. All runs fine, except for the Transaction data in Google Analytics. Orders created and completed by 'guests' are not send to Analytics, all other orders are...  Please help us out.  Kind regards, Olaf")*

Hi Nicholas,

Yes, attached!
Please note that all non-guest orders are working fine and are correctly sent to Analytics.

Regards,
Olaf

[ ![analytics&#95;settings.jpg](/forum/attachment/47867) ](/forum/attachment/47867 "...s&#95;settings.jpg")

- [ ![analytics&#95;settings.jpg](/forum/attachment/47867) ](/forum/attachment/47867 "...s&#95;settings.jpg") [ ](/forum/attachment/47867?download=1 "...s&#95;settings.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5ODQxNC1oaWthc2hvcC1hbmFseXRpY3Mtbm90LWZpcmluZy10cmFuc2FjdGlvbi1kYXRhLWZvci1ndWVzdC1vcmRlcnM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

7 years 1 month ago [\#311672](#311672) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Analytics not firing Transaction data for guest orders](/forum/27-checkout/898414-hikashop-analytics-not-firing-transaction-data-for-guest-orders#311672 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.10 -- Browser(s) name and version -- : Google Chrome 77 -- Error-message(debug-mod must be tuned on) -- : None  The webshop allows customers to purchase without registration. All runs fine, except for the Transaction data in Google Analytics. Orders created and completed by 'guests' are not send to Analytics, all other orders are...  Please help us out.  Kind regards, Olaf")*

Hi,

I would recommend to activate the "force universal analytics" setting of the plugin and see if that helps.

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

- **[olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")**
- [![olaf@zuurstof.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile") Topic Author
- [ Offline](/forum/user/47570-olaf-zuurstof-nl)

Less More

- Posts: 9
- Thank you received: 0
-
-

7 years 1 month ago [\#311919](#311919) by [olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")  Replied by *[olaf@zuurstof.nl](/forum/user/47570-olaf-zuurstof-nl "View olaf@zuurstof.nl's Profile")* on topic *[Hikashop Analytics not firing Transaction data for guest orders](/forum/27-checkout/898414-hikashop-analytics-not-firing-transaction-data-for-guest-orders#311919 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.10 -- Browser(s) name and version -- : Google Chrome 77 -- Error-message(debug-mod must be tuned on) -- : None  The webshop allows customers to purchase without registration. All runs fine, except for the Transaction data in Google Analytics. Orders created and completed by 'guests' are not send to Analytics, all other orders are...  Please help us out.  Kind regards, Olaf")*

Hi Nicholas,

With Universal Analytics all orders do appear in Google Analuytics. However, the product data is not visible in Analytics.

This is an example of the code generated: Code:

&lt;!-- Google Analytics --&gt; &lt;script&gt; (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]&#124;&#124;function(){ (i[r].q=i[r].q&#124;&#124;[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,"script","//www.google-analytics.com/analytics.js","ga"); ga("create", "UA-xxxxxx", "auto"); // Removed for security reasons ga("require", "displayfeatures"); ga("require", "linkid", "linkid.js"); ga("send", "pageview"); ga("require", "ecommerce", "ecommerce.js"); ga("ecommerce:addTransaction", { "id": "30001554", "affiliation": "Hartog", "revenue": "37.62", "shipping": "6.4", "tax": "2.46", "currency: "EUR" }); ga("ecommerce:addItem", { "id": "30001554", "name": "Luzernepellets", "sku": "LPZ", "category": "", "price": "15.60826", "quantity": "2" }); ga("ecommerce:send"); &lt;/script&gt; &lt;!-- End Google Analytics --&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5ODQxNC1oaWthc2hvcC1hbmFseXRpY3Mtbm90LWZpcmluZy10cmFuc2FjdGlvbi1kYXRhLWZvci1ndWVzdC1vcmRlcnM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

7 years 1 month ago -  7 years 1 month ago [\#311951](#311951) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Analytics not firing Transaction data for guest orders](/forum/27-checkout/898414-hikashop-analytics-not-firing-transaction-data-for-guest-orders#311951 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.10 -- Browser(s) name and version -- : Google Chrome 77 -- Error-message(debug-mod must be tuned on) -- : None  The webshop allows customers to purchase without registration. All runs fine, except for the Transaction data in Google Analytics. Orders created and completed by 'guests' are not send to Analytics, all other orders are...  Please help us out.  Kind regards, Olaf")*

Hi,

With "Universal Analytics", HikaShop sends a cURL request to Google when the order status is changed, so you're guaranteed to have the request sent to Google.
However, it uses another API than the javascript API (so it doesn't use the code that you posted in your message), as it's not possible.
And that other API doesn't allow the plugin to send the product data.
Without the "Universal Analytics", then HikaShop sends the data via the javascript API, but this requires the customer to comes back to your website after the payment.
If the customer closes the tab after the payment on the payment gateway, then the javascript API cannot be used in the browser of the customer and thus the data is not sent to Google Analytics.
Not much we can do to help in either case I'm afraid.
What you could do though is make sure that the customers are automatically redirected back to your website after the payment. Some payment gateways have an option you can activate in the merchant account for that.

Last edit: 7 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5ODQxNC1oaWthc2hvcC1hbmFseXRpY3Mtbm90LWZpcmluZy10cmFuc2FjdGlvbi1kYXRhLWZvci1ndWVzdC1vcmRlcnM/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.073 seconds

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