galdikas
galdikas

Reputation: 1669

Parameter for Ecommerce Transaction timestamp in google measurment protocol?

I am migrating pushing the e-commerce transactions from controller, to a cron job, that will run every minute.

However, I cannot seem to find the parameter in measurement protocol, which I could to specify the exact time at which the transaction occurred?

Anyone have any ideas? Is this even necessary, since the maximum delay will be 1 minute?

Upvotes: 0

Views: 756

Answers (1)

Eike Pierstorff
Eike Pierstorff

Reputation: 32780

You cannot specify a timestamp for the transaction (you can add a custom dimension with a timestamp, but GA will happily ignore this for session aggregation).

What you can do is add an offset in milliseconds between the actual transaction time (or time of any other hit) and the time you finally send the hit to Google. This is called "queue time", I think this was originally intended for native/web apps that might be offline for some time.

Just for a minute delay I probably would not bother. However it might be useful for cases when your cron job fails for some reason, and you want to pick up and send the transactions later.

Upvotes: 3

Related Questions