Skip to content

Commit a8167ba

Browse files
authored
Merge branch 'develop' into wilwong-twilio-patch-4
2 parents 95ba226 + 5d626b6 commit a8167ba

File tree

5 files changed

+37
-9
lines changed

5 files changed

+37
-9
lines changed

src/_includes/content/snippet-helper.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,30 @@ analytics.page();
138138
```
139139
{% endcodeexampletab %}
140140

141-
{% endcodeexample %}
141+
{% codeexampletab HTML head with snippet %}
142+
```html
143+
<head>
144+
<title>My Page Title</title>
145+
<link rel="canonical" href="https://example.com/page" />
146+
147+
<!-- Segment snippet -->
148+
<script type="text/javascript">
149+
(function() {
150+
var analytics = window.analytics = window.analytics || [];
151+
analytics._writeKey = "YOUR_WRITE_KEY";
152+
analytics.SNIPPET_VERSION = "5.x";
153+
analytics.load = function(key) {
154+
var s = document.createElement("script");
155+
s.async = true;
156+
s.src = "https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";
157+
document.head.appendChild(s);
158+
};
159+
analytics.load("YOUR_WRITE_KEY");
160+
analytics.page();
161+
})();
162+
</script>
163+
</head>
164+
```
165+
{% endcodeexampletab %}
166+
167+
{% endcodeexample %}

src/connections/sources/catalog/libraries/website/javascript/quickstart.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@ You can choose to install Segment to your site in 1 of 2 ways:
3030

3131
[b. Install Segment as an NPM package](#step-2b-install-segment-as-a-npm-package)
3232

33-
### Step 2a: Add the Segment Snippet
33+
### Step 2a: Add the Segment snippet
3434

3535
> info ""
3636
> You can find the latest version of the Segment snippet in the **Overview** tab of your JavaScript source.
3737
38-
To add the Segment snippet to your app:
39-
40-
Paste the snippet into the `<head>` tag of your site to install Segment.
38+
To add the Segment snippet to your app, paste it into the `<head>` tag of your site, **below the `<title>` tag and the canonical URL**. This ensures that Analytics.js can capture the `document.title` value.
4139

4240
{% include content/snippet-helper.md %}
4341

@@ -48,7 +46,7 @@ Replace `YOUR_WRITE_KEY` in the snippet you pasted with your Segment project's *
4846
4947
That snippet loads Analytics.js onto the page _asynchronously_, so it won't affect your page load speed. Once the snippet is running on your site, you can turn on destinations from the destinations page in your workspace and they start loading on your site automatically.
5048

51-
Note that you should remove other native third-party destination code that you might have on your site. For example, if you're using Segment to send data to Google Analytics, make sure you remove the Google Analytics snippet from your site source code to prevent sending the data twice.
49+
You should also remove other native third-party destination code that you might have on your site. For example, if you're using Segment to send data to Google Analytics, make sure you remove the Google Analytics snippet from your site source code to prevent sending the data twice.
5250

5351
> info ""
5452
> If you only want the most basic Google Analytics setup, there's no need to continue with the setup. Just toggle on Google Analytics in the Segment interface.

src/engage/audiences/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ To edit a realtime trait or audience:
246246
1. In your Engage Space, select the **Computed Traits** or **Audiences** tab.
247247
2. Select the realtime audience or trait you want to edit.
248248
3. Select the **Builder** tab and make your edits.
249-
4. Preview the results, then select **Create Audience** to confirm your edits.
249+
4. Preview the results, then select **Save audience** to confirm your edits.
250250

251251
Engage then processes your realtime audience or trait edits. While the edit task runs, the audience remains locked and you can't make further changes. Once Engage incorporates your changes, you'll be able to access your updated audience or trait.
252252

src/engage/audiences/linked-audiences.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ To activate your Linked Audience:
146146
- [Step 2c: Defining how and when to trigger an event to your Destination](#step-2c-define-how-and-when-to-trigger-an-event-to-your-destination)
147147
- [Step 2d: Creating and activation and configuring the event payload](#step-2d-configure-the-event)
148148

149+
149150
### Step 2a: Configuring an activation
151+
See the step-by-step video on activating Linked Audiences:
152+
<iframe width="560" height="315" src="https://www.youtube.com/embed/aKncQ7vtJlg?si=H_U6LNE0IBfUMtoM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
150153

151154
[Destinations](/docs/connections/destinations/) are the business tools or apps that Segment forwards your data to. Adding an activation to your Linked Audience allows you to act on your data and learn more about your customers in real time. To fully take advantage of Linked Audiences, you must connect and configure at least one destination by creating an activation.
152155

src/engage/onboarding.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ hidden: true
55
redirect_from:
66
- '/engage/overview/onboarding'
77
---
8-
> info "Engage Premier End of Sale"
9-
> Engage Premier entered an End of Sale (EOS) period effective June 10, 2024 and is no longer available for new customers. Existing Segment customers have access to and support for Engage Premier until Segment announces an end-of-life (EOL) date. Segment recommends exploring [Twilio Marketing Campaigns](https://www.twilio.com/en-us/sendgrid/marketing-campaigns){:target="_blank"}, as well as Segment's preferred ISV partners, including [Airship](https://www.twilio.com/en-us/blog/airship-integrated-customer-experience){:target="_blank"}, [Braze](https://www.twilio.com/en-us/blog/braze-conversational-marketing-campaigns){:target="_blank"}, [Klaviyo](https://www.twilio.com/en-us/blog/klaviyo-powering-smarter-digital-relationships){:target="_blank"}, [Bloomreach](https://www.twilio.com/en-us/blog/bloomreach-ecommerce-personalization){:target="_blank"}, and [Insider](https://www.twilio.com/en-us/blog/insider-cross-channel-customer-experience){:target="_blank"}.
8+
9+
> info "Engage Premier End of Life"
10+
> Engage Premier features, including Channels, Broadcasts, content templates, and Subscriptions, will no longer be available after December 15, 2025.
1011
1112
Twilio Engage brings Segment, Twilio, SendGrid, and WhatsApp together to help you create and send email, SMS, and WhatsApp campaigns to your customers.
1213

0 commit comments

Comments
 (0)