-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-ga4-shopify-website.html
332 lines (313 loc) · 17.4 KB
/
install-ga4-shopify-website.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
---
permalink: /install-ga4-shopify-website/
---
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://kit.fontawesome.com/029ff40d7b.js" crossorigin="anonymous"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XVK8SSNQSC"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XVK8SSNQSC');
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "How to Install GA4 on Your Shopify Website",
"image":
"https://sybiltec.com/images/person-using-google-analytics-on-macbook-air-350x183.jpg",
"datePublished": "2023-06-19T16:30:00+01:00",
"dateModified": "2023-06-19T16:30:00+01:00",
"author": [
{
"@type": "Person",
"name": "Sybil Mayard",
"url": "https://sybiltec.com/"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://sybiltec.com/"
},{
"@type": "ListItem",
"position": 2,
"name": "How to Install GA4 on Your Shopify Website"
}]
}
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>How to Install GA4 on Your Shopify Website | Sybiltec</title>
<meta name="Description" content="Have you installed GA4 on your Shopify website? If not, read this article to learn how to add Google Analytics to your Shopify store in a few simple steps.">
<meta name="robots" content="all">
<link rel="canonical" href="https://sybiltec.com/install-ga4-shopify-website/">
<meta property="og:locale" content="en_GB" />
<meta property="og:type" content="website" />
<meta property="og:title" content="How to Install GA4 on Your Shopify Website | Sybiltec" />
<meta property="og:description" content="Have you installed GA4 on your Shopify website? If not, read this article to learn how to add Google Analytics to your Shopify store in a few simple steps.." />
<meta property="og:url" content="https://sybiltec.com/install-ga4-shopify-website/" />
<meta property="og:site_name" content="Sybiltec" />
<meta property="og:image" content="https://sybiltec.com/images/person-using-google-analytics-on-macbook-air-350x183.jpg" />
<meta property="article:published_time" content="2023-06-19T16:30:00+01:00" />
<meta property="article:modified_time" content="2023-06-19T16:30:00+01:00" />
<meta property="article:tag" content="Google Analytics" />
<meta property="article:author" content="Sybil Mayard" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@sybiltec" />
<meta name="twitter:site" content="@sybiltec" />
<meta name="twitter:label1" content="Written by">
<meta name="twitter:data1" content="Sybil Mayard">
<meta name="twitter:label2" content="Estimated reading time">
<meta name="twitter:data2" content="5 minutes">
<meta name="google-site-verification" content="4CQdjA8VuHHdJlLAeL33JXUNCcg92x6Yy2MK2H-F5rs" />
<meta name="geo.region" content="GB" />
<meta name="geo.placename" content="London" />
<meta name="geo.position" content="51.495673;0.141465" />
<meta name="ICBM" content="51.495673, 0.141465" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"image": "https://sybiltec.com/images/logos/sybiltec-logo-social.png",
"name": "Sybiltec Web Design",
"address": {
"@type": "PostalAddress",
"streetAddress": "2 Veridion Way",
"addressLocality": "Bexley",
"addressRegion": "London",
"postalCode": "DA18 4AL",
"addressCountry": "GB"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 51.495673,
"longitude": 0.141465
},
"url": "https://sybiltec.com",
"telephone": "+447768059730",
"priceRange": "$$",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"opens": "09:00",
"closes": "18:00"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"image": "https://sybiltec.com/images/logos/sybiltec-logo-social.png",
"url": "https://www.sybiltec.com",
"sameAs": ["https://www.instagram.com/sybiltec/", "https://www.facebook.com/sybiltec", "https://www.linkedin.com/company/sybiltec/"],
"logo": "https://sybiltec.com/favicon.png",
"name": "Sybiltec Web Design",
"description": "Sybiltec provides web design services to small businesses in the South East London region and surrounding areas. Whether you are looking to build your first website or redesign an existing one, we offer a service that's right for you. Services include: small business websites, e-commerce websites and online learning platforms. We work with Shopify, WordPress, Wix, WooCommerce and LearnDash.",
"email": "info@sybiltec.com",
"telephone": "+447768059730",
"address": {
"@type": "PostalAddress",
"streetAddress": "2 Veridion Way",
"addressLocality": "Bexley",
"addressCountry": "GB",
"addressRegion": "London",
"postalCode": "DA18 4AL"
}
}
</script>
<link rel="stylesheet" href="https://sybiltec.com/styles.min.css" type="text/css">
<link rel="icon" type="image/png" href="https://sybiltec.com/favicon.png">
</head>
<body>
<div class="announcement-bar">
<div class="container-1140">
<span><i class="fa-regular fa-envelope"></i><a href="mailto:info@sybiltec.com?subject=Website Enquiry" target="_blank">info@sybiltec.com</a></span>
</div>
</div>
<div class="header">
<div class="container-1140">
<div class="row">
<div class="col-2">
<div class="logo">
<span class="logo"><a href="/">Sybiltec</a></span>
</div>
</div>
<div class="col-10">
<div class="nav">
<div class="topnav" id="myTopnav">
<a href="/">Home</a>
<a href="https://sybiltec.com/about/">About</a>
<a href="https://sybiltec.com/services/">Services</a>
<a href="https://sybiltec.com/clients/">Case Studies</a>
<a href="https://sybiltec.com/contact/" class="btn-contact">Contact Us</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fas fa-bars"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="hero">
<div class="container-1140">
<h1>How to Install GA4 on Your Shopify Website</h1>
</div>
</div>
<div class="main section">
<div class="container-1140">
<ol class="breadcrumb">
<li>
<a href="https://sybiltec.com">Home</a>
</li>
>
<li>
How to Install GA4 on Your Shopify Website
</li>
</ol>
<h2>Google Analytics 4 Installation on Shopify</h2>
<p>Date published: 19 June 2023 | by Sybil Mayard</p>
<p>You must remove password protection from your <strong>Shopify</strong> store in order to allow <strong>Google Analytics</strong> to track events.</p>
<p>This article assumes that you have created a GA4 property already. If you haven't yet done so, please read my article, <a href="https://sybiltec.com/upgrade-google-analytics-4/">How Do I Upgrade to Google Analytics 4?</a></p>
<p>Firstly, find your Google Analytics measurement ID. This can be found from the <em>Web stream</em> details page in your Google Analytics account.</p>
<img class="screenshot" src="https://sybiltec.com/images/screenshots/google-analytics-web-stream-details.png" alt="Google Analytics web stream details">
<p>From your Shopify admin, go to <em>Online Store</em> > <em>Preferences</em>.</p>
<img class="screenshot" src="https://sybiltec.com/images/screenshots/shopify-online-store-preferences.png" alt="Shopify online store preferences">
<p>Scroll down to the <em>Google Analytics</em> section and click <em>Manage pixel here</em>.</p>
<img class="screenshot" src="https://sybiltec.com/images/screenshots/shopify-manage-pixel-here.png" alt="Shopify Google Analytics manage pixel here">
<p>Click <em>Add sales channel</em>.</p>
<img class="screenshot" src="https://sybiltec.com/images/screenshots/shopify-add-google-and-youtube.png" alt="Shopify add Google & YouTube sales channel">
<p>Select the Google account that owns your GA4 property.</p>
<img class="screenshot" src="https://sybiltec.com/images/screenshots/shopify-google-channel.png" alt="Choose an account to continue to Google Channel by Shopify">
<p>Click <em>Allow</em>.</p>
<img class="screenshot" src="https://sybiltec.com/images/screenshots/shopify-trust-google-channel.png" alt="Shopify trust Google Channel">
<p>In the <em>Connect a Google Analytics property</em> section, select the GA4 property from the dropdown and click the <em>Connect</em> button.</p>
<img class="screenshot" src="https://sybiltec.com/images/screenshots/shopify-connect-google-analytics-property.png" alt="Shopify connect a Google Analytics property">
</div>
</div>
<div class="contact section">
<div class="container-1140">
<div class="row">
<div class="col-8">
<h3>Would You Like To Start A Project With Us?</h3>
<p>Click the contact button to get in touch with your requirements</p>
</div>
<div class="col-4">
<a class="btn-primary" href="https://sybiltec.com/contact/">Contact Us</a>
</div>
</div>
</div>
</div>
<div class="footer section">
<div class="container-1140">
<div class="row">
<div class="col-2-4">
<p><strong>Links</strong></p>
<p><a href="https://sybiltec.com/about/">About</a></p>
<p><a href="https://sybiltec.com/blog/">Blog</a></p>
<p><a href="https://sybiltec.com/faqs/">FAQs</a></p>
<p><a href="https://sybiltec.com/sitemap/">Sitemap</a></p>
<p><a href="https://sybiltec.com/privacy-notice/">Privacy Notice</a></p>
<p><a href="https://sybiltec.com/terms-and-conditions/">Terms and Conditions</a></p>
</div>
<div class="col-2-4">
<p><strong>Services</strong></p>
<p><a href="https://sybiltec.com/ecommerce-websites/">E-commerce Websites</a></p>
<p><a href="https://sybiltec.com/website-review/">Website Review</a></p>
<p><a href="https://sybiltec.com/small-business-web-design/">Web Design</a></p>
<p><a href="https://sybiltec.com/website-maintenance/">Website Maintenance</a></p>
<p><a href="https://sybiltec.com/training/">Workshops</a></p>
<p><a href="https://sybiltec.com/leaflet-design/">Leaflet Design</a></p>
</div>
<div class="col-2-4">
<p><strong>Some Areas We Cover</strong></p>
<p><a href="https://sybiltec.com/website-design/">Web Design in Bexley</a></p>
<p><a href="https://sybiltec.com/web-design-surrey/">Web Design in Surrey</a></p>
<p><a href="https://sybiltec.com/free-workshops-greenwich-borough/">Workshops in Greenwich</a></p>
</div>
<div class="col-2-4">
<p><strong>Get in Touch</strong></p>
<p><a href="mailto:info@sybiltec.com?subject=Website Enquiry">info@sybiltec.com</a><br>
The Engine House<br>2 Veridion Way<br>Erith DA18 4AL</p>
<p>
<a href="https://www.uksmallbusinessdirectory.co.uk/bid/284687/" rel="noopener noreferrer" target="_blank"><img src="https://www.uksmallbusinessdirectory.co.uk/links/uksbd-100.png" alt="Business Directory"></a>
</p>
</div>
<div class="col-2-4">
<p><strong>Awards</strong></p>
<img src="https://sybiltec.com/images/awards/best-sme-focused-web-design-agency-2024.png" alt="SME News Best SME-Focused Web Design Agency 2024">
<img src="https://sybiltec.com/images/awards/digital-services-customer-service-excellence-award-2024.png" alt="SME News Digital Services Customer Service Excellence Award 2024">
</div>
</div>
</div>
<div class="container-1140 center padding-top padding-bottom">
<a href="https://www.linkedin.com/in/sybil-m" target="_blank" rel="noopener noreferrer">
<i class="fa-brands fa-linkedin"></i></a>
<a href="https://instagram.com/sybiltec/" target="_blank" rel="noopener noreferrer">
<i class="fa-brands fa-instagram"></i></a>
<a href="https://www.pinterest.co.uk/sybiltec/" target="_blank" rel="noopener noreferrer">
<i class="fa-brands fa-pinterest"></i></a>
<a href="https://www.facebook.com/sybiltec" target="_blank" rel="noopener noreferrer">
<i class="fa-brands fa-facebook"></i></a>
<a href="https://x.com/sybiltec" target="_blank" rel="noopener noreferrer">
<i class="fa-brands fa-x-twitter"></i></a>
<a href="https://www.tiktok.com/@sybiltec" target="_blank" rel="noopener noreferrer">
<i class="fa-brands fa-tiktok"></i></a>
</div>
<div class="copyright section center"><p>Copyright ©
<span id="year"></span> Sybiltec Web Design. ICO registration reference: ZB744424</p>
</div>
</div>
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function toggleDropdown() {
document.getElementById("myDropdown").classList.toggle("show");
console.log("click");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
document.getElementById("year").innerHTML = new Date().getFullYear();
</script>
</body>
</html>