Author Topic: Plugin for GA tracking  (Read 1337 times)

marvays

  • Jr. Member
  • **
  • Posts: 278
    • http://marvays.cz
  • Skype Name: marvays
Plugin for GA tracking
« 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?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4179
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Plugin for GA tracking
« Reply #1 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.

marvays

  • Jr. Member
  • **
  • Posts: 278
    • http://marvays.cz
  • Skype Name: marvays
Re: Plugin for GA tracking
« Reply #2 on: November 15, 2019, 02:56:55 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?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4179
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Plugin for GA tracking
« Reply #3 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

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 129
    • MiniJoomla
  • VirtueMart Version: 3
Re: Plugin for GA tracking
« Reply #4 on: December 15, 2019, 10:18:14 am »
Quote
the 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.

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

marvays

  • Jr. Member
  • **
  • Posts: 278
    • http://marvays.cz
  • Skype Name: marvays
Re: Plugin for GA tracking
« Reply #5 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.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2530
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Plugin for GA tracking
« Reply #6 on: December 15, 2019, 14:43:36 pm »
The OPC should not have anything to do with the admin interface.

Jörgen
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

marvays

  • Jr. Member
  • **
  • Posts: 278
    • http://marvays.cz
  • Skype Name: marvays
Re: Plugin for GA tracking
« Reply #7 on: December 15, 2019, 15:07:15 pm »

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 129
    • MiniJoomla
  • VirtueMart Version: 3
Re: Plugin for GA tracking
« Reply #8 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 :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

marvays

  • Jr. Member
  • **
  • Posts: 278
    • http://marvays.cz
  • Skype Name: marvays
Re: Plugin for GA tracking
« Reply #9 on: December 15, 2019, 17:15:15 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.