Skip to content

Commit e541c44

Browse files
authored
Merge pull request #4032 from segmentio/prigiattiperrut-patch-1
Added details for EU workspaces
2 parents 54bdf16 + 239a0b6 commit e541c44

File tree

1 file changed

+17
-0
lines changed
  • src/connections/sources/catalog/libraries/mobile/amp

1 file changed

+17
-0
lines changed

src/connections/sources/catalog/libraries/mobile/amp/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ Within your `<body>` tags, include the following Segment analytics snippet:
3939
```
4040
Replace `WRITE_KEY` with the write key you obtain from the AMP Source you've set up within the Segment UI.
4141

42+
For sources in [EU workspaces](/docs/guides/regional-segment/), use the following snippet:
43+
44+
```html
45+
<amp-analytics type="segment">
46+
<script type="application/json">
47+
{
48+
"vars": {
49+
"writeKey": "<SOURCE_WRITE_KEY>"
50+
},
51+
"requests": {
52+
"host": "https://events.eu1.segmentapis.com/v1/pixel"
53+
}
54+
}
55+
</script>
56+
</amp-analytics>
57+
```
58+
4259
By default, the snippet will automatically fire a page event which you can read more about [here](/docs/connections/sources/catalog/libraries/mobile/amp/#page).
4360

4461

0 commit comments

Comments
 (0)