Connect Google Analytics 4
Tikra sends each paid online order to Google Analytics 4 (GA4) as a purchase event.
For GA4 purchase tracking on Shopify you log in to Google and choose your property and web stream.
Details
To use a key instead, you need the measurement ID of your web data stream and a Measurement Protocol API secret (steps 1 and 2). With a plan, Tikra also sends Google Analytics 4 the store events you turn on: page views, product views, add to cart, checkout started and payment info. See Store events.
On the Free plan, Google Analytics 4 keeps getting purchases, with Meta. Store events pause, and their settings are saved.
1. With a key: find the measurement ID
- In Google Analytics, go to Admin > Data streams and open your web stream.
- The measurement ID starts with G-, like G-AB12CD34EF.
2. With a key: create the API secret
- On the same web stream page, open Measurement Protocol API secrets.
- Click Create.
- Copy the Secret value.
3. Decide about the store's own Google Analytics 4 tracking
Google Analytics 4 starts getting orders from Tikra as soon as you save. If the store's own Google Analytics tag still sends purchases, Google Analytics 4 can count a purchase twice.
Tikra sends purchases to Google Analytics 4, and the store events you turn on, one by one, on the Events page.
Details
The store's own Google Analytics tag sends page views, sessions and traffic sources, product views, add to cart and checkout steps. The Google & YouTube sales channel has no switch for purchases alone, so removing its Google Analytics connection stops all of these events, and Google Analytics 4 then also cannot show where buyers came from. Do not remove it only to stop its purchases.
Choose one:
- Keep the store's own Google Analytics 4 tracking as it is. Then do not connect Google Analytics 4 in Tikra. Google Analytics 4 keeps getting everything, including purchases, from the store's own tag.
- Stop only its purchases. If your Google Analytics tag runs in Google Tag Manager, a custom pixel or your theme code, remove only its purchase event there and keep the other events. Then connect Google Analytics 4 in Tikra (step 4).
- Let Tikra send the store events too. Stop all the store's own Google Analytics events, connect Google Analytics 4 in Tikra (step 4), then turn each event on on the Events page. Google Analytics 4 then cannot show where buyers came from. See Last step for Google Analytics 4 in Turn off the store's own tracking.
Also remove any other Google Analytics tag that sends purchase events. More in Turn off the store's own tracking.
4. Connect Google Analytics 4 in Tikra
- In Tikra, go to Platforms.
- On the platform's row, click Connect. The connect window opens from the right.
- In the Connect Google Analytics window, click Log in to Google, then Continue to Google, and choose your Google account. Choose your Google Analytics property and Web stream and click Connect Google Analytics, with the tick below if Tikra asks. To use the ID and secret instead, click Use a key instead.
- With a key, paste the measurement ID into Measurement ID.
- Paste the secret into Measurement Protocol API secret.
- Click Save and check.
- When Tikra asks, tick The store's own Google Analytics 4 purchase tracking is off. I understand that Google Analytics 4 then gets only purchases from Tikra. and click Save and check again. Tikra does not save without it. The tick is about purchases. Store events are turned on one by one on the Events page: see Store events.
Tikra sends a test event to Google's validation server first.
Details
When Google finds no problem with its format, the card says Google Analytics 4 is connected and its status changes to Connected. This check does not look at the measurement ID or the API secret, so a wrong one passes it too (step 5).
Until you approve the Free plan the form has no tick boxes, and Google Analytics 4 gets nothing from Tikra. The card says Orders start once you approve the Free plan.
Details
Keep the store's own Google Analytics 4 tracking on until you approve the Free plan. Then stop its purchases (step 3), click Go live on the platform's row, and tick both boxes there.
5. Check your next order in Google Analytics 4 Realtime
Google's check looks at the format of the events only.
Details
It does not check the measurement ID or the API secret. With a wrong one, Google still accepts each order and records nothing, and Tikra cannot see that. Google answers the same way whether or not it records an order, so Home shows Google Analytics 4 orders as sent, not confirmed, and Realtime is the real check.
After your next paid order, open the Realtime report in Google Analytics 4 and look for the purchase. If it does not appear:
- Open the order on the Orders page in Tikra. If Google Analytics 4 shows Left out, the order was never sent, and its line says why, for example "Not sent: the buyer did not allow analytics."
- If it shows Sent, check that the measurement ID belongs to your store's web stream.
- Create a new API secret on that web stream and save it in Tikra: click the platform's row, then Change details.
Send a test
- Click the platform's row.
- Then Send test.
- Then Send test again.
Details
Tikra sends a sample purchase to Google's validation server. It never appears in your reports. The test checks the event format only. It does not check the measurement ID or the API secret either, so Realtime stays the real check.
Order data: value, product ID and customer type
- Click the platform's row.
- Then Order data to open it (it is closed until you click it, and a line under it shows your current choice).
There you can change what Tikra sends. Click Save order data. New orders use your choice, and refunds follow it.
- Value. The default is the subtotal without tax: items after discounts, with no tax and no shipping. You can choose Total (what the buyer paid, with tax and shipping) or Subtotal (items after discounts, before shipping). A card that was connected before this choice existed keeps sending as it did until you choose. Once you choose, the card cannot go back to "as before". Email support@tikratracking.com if you want that.
- Product ID. By default each item carries its SKU, or the product ID when there is no SKU. Choose another format when your Google Analytics 4 items must match a product feed, for example the Google & YouTube ID, which needs the two-letter country of the feed.
- Send customer type (new / returning). Tikra adds customer_type and new_customer to the purchase. When Tikra does not know, it sends nothing. It never guesses. On WooCommerce the type is worked out only from orders Tikra has seen since your store connected. A guest checkout without a customer account or email stays unknown.
What Google Analytics 4 receives
- One purchase event for each paid online order (placed through your store's checkout) the buyer's consent allows. In Strict mode Google Analytics 4 gets an order only when the buyer allowed analytics. See Consent. Point of sale sales, draft orders marked as paid, subscription renewals and orders other apps or marketplaces create without a checkout are not sent. See Order proof.
- The Shopify order ID as the transaction ID.
- The value as Google asks for it: the products' prices after discounts, without tax and without shipping. When your store's prices include tax (for example VAT in the EU), Tikra takes the tax out. The tax and the shipping are sent as separate fields.
- Your store's currency, also when the buyer paid in another currency, and the products: each with its price after discounts and without tax, and the discount per item. Google takes at most 200 products per purchase and 100 characters per name or SKU, so a longer list or name is shortened. The value always counts every product.
- Google Analytics 4 leaves out gift cards sold, as Shopify's sales reports do; ad platforms get a gift card sale as a purchase.
- The buyer's Google Analytics client ID and session ID, when the pixel read them with analytics consent. Without them, Tikra uses an ID made for the order: the revenue counts, but Google Analytics 4 cannot show where the buyer came from.
- The buyer's approximate location and device, so Google Analytics 4 shows the country and the device type of each purchase: a shortened form of the buyer's IP address (the full address is never sent), and the device type (for example mobile or desktop), operating system and browser. They go with the purchase, so the same consent rule applies. A store that accepted an earlier version of the Data Processing Agreement gets them only after it accepts the version that lists them. Home then asks the store owner or an admin to accept the updated terms: the window described in Get started, step 3.
- A refund event for each Shopify refund of an order Google Analytics 4 got. A refund of the whole order is sent without products, a partial refund with the refunded products, and the value is the refunded goods without tax. A refund with no product (for example only the shipping) is not sent. The refund is dated when it was made. If it goes out more than 71 hours later, it is dated 71 hours before it was sent. A refund older than 7 days is not sent.
- With a plan, the store events you turn on on the Events page: Page view (page_view), Product view (view_item), Add to cart (add_to_cart), Checkout started (begin_checkout) and Payment info (add_payment_info), through the Measurement Protocol, only for visitors who allow marketing. Each one goes only after you confirm that your store's own Google tag does not send it. Google Analytics 4 connected with the Google login asks once for its Measurement Protocol API secret. See Store events.
- The ad consent signals, set to granted only when the buyer allowed marketing and did not opt out of the sale or sharing of data. Otherwise they are set to denied.
Tikra sends to Google's collection address for the EU.
Google Analytics 4 takes a purchase dated at most 72 hours back.
Details
An order that goes out later, for example after a problem was fixed, is sent up to 7 days after payment and dated 71 hours before it was sent: Google Analytics 4 shows it on that day, it may not be tied to the buyer's visit, and the order's page in Tikra says so. Older orders are not sent to Google Analytics 4.
Change the details, pause or disconnect
Click the platform's row, then choose:
- Change details: paste new values. Leave the secret empty to keep the saved one.
- Pause (under More): orders paid while Google Analytics 4 is paused are not sent and do not count toward the match rate.
- Resume: click Open to resume on the row, then More, then Resume. Google Analytics 4 gets new paid orders again. Orders paid while it was paused are not sent later.
- Disconnect (under More): Tikra deletes the saved secret and stops sending orders to Google Analytics 4.
Still stuck? Email support@tikratracking.com with your store address and your measurement ID.