You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
NOTE: This post was created on 2022-12-04 on the Kryptronic eCommerce Community facebook page, which has been replaced with this forum. All facebook support content was migrated into this forum in April 2024.
Rob:
Hi Nick Hendler
Just curious if you have every looked at google analytics(GA4) api?
I have sorted the connection with google api so can pull data into kryptronic backend. What I will probably do is a daily cron task and add data such as source, campaign name, device, etc, etc to the order database table, and then use the data to create better sales reports - not really too sure yet.
I can also run reports direct in backend including realtime data.
Obviously this data is all available in GA anyway, but it will be nice to have only the reports I want to see in the backend dashboard all the time.
Don't need any help at the moment, but just wondered if you had done anything similar or have anything planned.
Kryptronic:
We're currently working on new code to integrate GA4 in a robust fashion, as compared to the older GA3 integration. We'll release the new functionality in our next update. We haven't looked into using the API to pull info down to the Kryptronic backend for reports - that's interesting. I'd like a little more info on this - like what you're pulling. Thanks.
Rob:
You can get endless amounts of data. To start with I will be creating a daily cron to grab data from analytics for previous days orders. I will add this data to a new column in orders table as serialised data. You can pull data such as device, browser, adwords campaign, source, searchterm, etc, etc. https://developers.google.com/analytics … g/data/v1/
Rob:
I will then use the data to create reports so I can see where the orders come from, what devices, etc. I am sure it will evolve as I work through it.
Rob:
Looks like you can also reproduce realtime data in the backend as well as running other reports. That will be for another day though! To get GA4 working, I just modified the existing google tag code and set the google tag as a data stream for GA4.
Kryptronic:
Excellent. Thanks for that. That's something we're going to implement as correlating GA reports with orders to determine the source as organic vs paid vs direct is cumbersome at best.
Offline