react-client-seo 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,6 +116,26 @@ function MyComponent() {
|
|
|
116
116
|
/>
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
+
**Note:** You only need to provide the ID - the package automatically injects both the async gtag.js script and the configuration script. Works with:
|
|
120
|
+
|
|
121
|
+
- Google Analytics 4 (GA4): `G-XXXXXXXXXX`
|
|
122
|
+
- Google Ads Conversion Tracking: `AW-XXXXXXXXXX`
|
|
123
|
+
|
|
124
|
+
Example with Google Ads conversion tracking:
|
|
125
|
+
|
|
126
|
+
```tsx
|
|
127
|
+
<Seo
|
|
128
|
+
title="My Page"
|
|
129
|
+
description="Page description"
|
|
130
|
+
googleAnalyticsId="AW-XXXXXXXXXX"
|
|
131
|
+
/>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
The package will automatically inject:
|
|
135
|
+
|
|
136
|
+
- `<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXXX"></script>`
|
|
137
|
+
- The inline configuration script with dataLayer initialization
|
|
138
|
+
|
|
119
139
|
### Google Tag Manager
|
|
120
140
|
|
|
121
141
|
```tsx
|
|
@@ -376,9 +396,9 @@ import type {
|
|
|
376
396
|
|
|
377
397
|
## Author
|
|
378
398
|
|
|
379
|
-
**Rainard Joseph
|
|
399
|
+
**Rainard Joseph**,
|
|
380
400
|
I'm working as a Software Project Manager at [Odidor](https://odidor.app/), working on the ERP and IMS software products. I love coding.
|
|
381
|
-
Connect with on [LinkedIn](https://www.linkedin.com/in/rainard-joseph)
|
|
401
|
+
Connect with on [LinkedIn](https://www.linkedin.com/in/rainard-joseph).
|
|
382
402
|
|
|
383
403
|
## License
|
|
384
404
|
|