VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: marvays on November 14, 2019, 10:47:46 AM

Title: Plugin for GA tracking
Post by: marvays on November 14, 2019, 10:47:46 AM
Is there a plugin that can post changes to orders when I fix it in administration?
Now I have Rupostel OPC, but it doesn't work for him. When I edit an order, it stays the same in GA.
I still have "BIT Virtuemart Google Analytics", but it also can't.

Anyone have VP Conversion Tracking?
Title: Re: Plugin for GA tracking
Post by: Studio 42 on November 15, 2019, 00:32:38 AM
GA check by javascript session, so perhaps the problem is that on admin, GA cannot track the customer, because it's your javascript session.
Title: Re: Plugin for GA tracking
Post by: marvays on November 15, 2019, 02:56:55 AM
Quote from: Studio 42 on November 15, 2019, 00:32:38 AM
GA check by javascript session, so perhaps the problem is that on admin, GA cannot track the customer, because it's your javascript session.
And how do you do that?
Title: Re: Plugin for GA tracking
Post by: Studio 42 on November 15, 2019, 14:48:34 PM
On order update, the javascript is not called in admin.
I never tested any methods to track GA using PHP. So because you cannot call the javascript, you cannot update on order statut change using javascript.
The problem is same on delete an order.
You find some codes in the web
https://processwire.com/talk/topic/18766-how-to-track-events-with-google-analytics-from-php/
https://www.ternstyle.us/blog/google-analytics-tracking-in-php
But this need to be converted for E-commerce tracking
Title: Re: Plugin for GA tracking
Post by: pinochico on December 15, 2019, 10:18:14 AM
Quotethe javascript is not called in admin.

Our plugin tracking order in administrator too, because you can select which status you can tracking and some status You can change only in admin.
But for update previously sended order to GA You must use only PHP (not JS).

No order tracking plugin can do this for VirtueMart (I tested 7 type of plugins).
Only a discontinued plugin from ITALY, but this plugin is old and I think is not to download for now.

Title: Re: Plugin for GA tracking
Post by: marvays on December 15, 2019, 13:59:40 PM
s.scholtz from rupostel.com claims that his OPC can send order changes from the VM administration. I tried, but it doesn't work.
Title: Re: Plugin for GA tracking
Post by: Jörgen on December 15, 2019, 14:43:36 PM
The OPC should not have anything to do with the admin interface.

Jörgen
Title: Re: Plugin for GA tracking
Post by: marvays on December 15, 2019, 15:07:15 PM
(https://i.postimg.cc/fVgSWTgW/Tracking-nbsp-Lazeck-a-M-ch-Administration.png) (https://postimg.cc/fVgSWTgW)
Title: Re: Plugin for GA tracking
Post by: pinochico on December 15, 2019, 16:58:38 PM
And are You tested Martin?

Are You looked on datalayer in administrator view after change status or only setup in OPC and waiting? Send You picture from testing :)
Title: Re: Plugin for GA tracking
Post by: marvays on December 15, 2019, 17:15:15 PM
Quote from: pinochico on December 15, 2019, 16:58:38 PM
And are You tested Martin?

Are You looked on datalayer in administrator view after change status or only setup in OPC and waiting? Send You picture from testing :)
I'm waiting. My php knowledge is 0. I can't follow the codes and read some of them :) With rupostel I deal with the currency of the total price of the order and the products. Not just a change of state.