2

I've been able to send transaction hits to Google Analytics no problem through Hit Builder just to test out Hit Paylods. Link here: Google's Hit Builder Transactions are showing up in GA and their source is "Direct" on default it seems.

What I want is to specify source myself before sending out Transaction Hit. Like I would like to specify email instead of Direct, or specify one of the websites in (Other) Category. How would I go about that?

enter image description here

Amiko
  • 545
  • 1
  • 8
  • 26

1 Answers1

2

Via the cs (campaign source) parameter. You may need to set other traffic sources parameters for a working attribution (you should at least set "source" and "medium").

Eike Pierstorff
  • 31,996
  • 4
  • 43
  • 62
  • Oh, I can simply add `cs` parameter inside transaction hit? Do I need to somehow bundle it up with other kind of hits? – Amiko Jun 15 '17 at 09:26
  • If you are doing Enhanced Ecommerce (which you should be) then the transaction data is bundled with a pageview in any case (instead of using a "transaction" hit). I have no idea whatsoever how the measurement protocol works with "classic" e-commerce tracking, but you should be okay if you send a pageview before the transaction with a source/medium attached with the same clientID. – Eike Pierstorff Jun 15 '17 at 09:43
  • 1
    Thanks, Apparently you can simply add one more parameter to classic "Transaction" hit and it works. – Amiko Jun 16 '17 at 08:47