Questions on the Cookbook for Google Analytics Enhanced

General ShopSite user discussion

Questions on the Cookbook for Google Analytics Enhanced

Postby Rgkopchak » Wed Sep 18, 2019 3:23 pm

Two quick questions. 1) In the screen grab, there are only three funnel steps listed. Am I correct in thinking there should be a fourth called "Thank You"? And are those the exact name we should use (ie, "Shopping Cart Screen")? " Google says, "Create labels for the checkout-funnel steps you identified in your ecommerce tracking code." So I want to get it right!

Also, in the code listed to copy and paste into the include file is:

Code: Select all
[-- ELSE_IF VAR.SubType "thankyou" --]ga('ec:addProduct', products);ga('ec:setAction', 'checkout', {'step': 4});ga('ec:setAction', 'purchase', {
  'id': ss_ordernum,
  'affiliation': '',
  'revenue': ss_ordertotal,
  'tax': ss_taxtotal,
  'shipping': ss_shiptotal

affiliation is listed as '' that can't be correct, can it?

edit: Also, as I am trying to get tracking in adwords set up, I am seeing this instruction:

Code: Select all
Copy the 'config' command below and add it to every instance of the global site tag, right above the </script> end tag. Consider updating the comment line in your tag to include your conversion ID.
gtag('config', 'AW-ACCOUNTNUMBERHERE');

I've been poking around, but I can't seem to find which include is including the google analytics code, so I can add this bit.

Lastly, the ad words conversion tracker is telling me to Copy the snippet below and paste it in between the <head></head> tags of the page(s) you'd like to track, right after the global site tag. I'm guessing I would only want this on the final checkout page. Is that possible? And where is says "value" I'd sub the "1.0" for ss_ordertotal, correct? and transaction id would become ss_ordernum?

Code: Select all
  gtag('event', 'conversion', {
      'send_to': 'AW-ACCOUNTNUMBERHERE/mJUdCI-xxqsBEOWQ_eAD',
      'value': 1.0,
      'currency': 'USD',
      'transaction_id': ''

I know this is a lot, thanks for the assistance in advance! I did some searching around the forum, but couldn't find anything that seemed to address these issues specifically.
Posts: 54
Joined: Wed Jul 28, 2010 7:45 am
Location: Missouri

Return to User Forum

Who is online

Users browsing this forum: Google [Bot] and 6 guests