Skip to content

Commit 3d3a720

Browse files
committed
Merge branch 'develop' into consent-management-public-beta
2 parents 4aba9f7 + 7659970 commit 3d3a720

File tree

4 files changed

+36
-4
lines changed
  • src/connections

4 files changed

+36
-4
lines changed

src/connections/destinations/catalog/actions-pinterest-conversions-api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Segment automatically maps User Data fields to their corresponding parameters [a
130130

131131
### Custom Data Parameters
132132

133-
Segment automatically maps Custom Data fields to their corresponding parameters [as expected by the Conversions API](https://developers.pinterest.com/docs/conversions/best/#Authenticating%20for%20the%20Conversion%20Tracking%20endpoint#The%20%2Cuser_data%2C%20and%20%2Ccustom_data%2C%20objects#Required%2C%20recommended%2C%20and%20optional%20fields#Required%2C%20recommended%2C%20and%20optional%20fields#User_data%2C%20and%20%2Ccustom_data%2C%20objects){:target="_blank"} before sending to Pinterest Conversions:
133+
Segment automatically maps Custom Data fields (excluding `content_ids`, `contents`, `num_items`, `opt_out_type`) to their corresponding parameters [as expected by the Conversions API](https://developers.pinterest.com/docs/conversions/best/#Authenticating%20for%20the%20Conversion%20Tracking%20endpoint#The%20%2Cuser_data%2C%20and%20%2Ccustom_data%2C%20objects#Required%2C%20recommended%2C%20and%20optional%20fields#Required%2C%20recommended%2C%20and%20optional%20fields#User_data%2C%20and%20%2Ccustom_data%2C%20objects){:target="_blank"} before sending to Pinterest Conversions:
134134

135135
| User Data Field | Conversions API Custom Data Parameter |
136136
| --------------- | ------------------------------------- |

src/connections/destinations/catalog/appsflyer/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ If you'd like to attribute offline events with a certain user or device, the ser
106106

107107
AppsFlyer requires the following properties for this attribution:
108108

109-
**AppsFlyer Device ID**
109+
**AppsFlyer ID**
110110

111-
Send the **AppsFlyer Device ID** with each event at `integrations.AppsFlyer.appsFlyerId`, see example below.
111+
Send the **AppsFlyer ID** with each event at `integrations.AppsFlyer.appsFlyerId`, see example below.
112112
This identifier is unique to each device and can be [retrieved using the AppsFlyer SDK](https://support.appsflyer.com/hc/en-us/articles/207034486-Server-to-Server-In-App-Events-API-HTTP-API-). It is a good idea to store this value in an external database where it may be easily accessible by a server or website environments.
113113

114114
**Device Type**

src/connections/destinations/catalog/google-tag-manager/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ analytics.page('Home', {
3232
});
3333
```
3434

35-
You must call the Page method for Google Tag Manager to load. Segment includes a call to `analytics.page` in your default Segment snippet, so if you haven't removed that, GTM will work the same as if you installed the GTM snippet directly.
35+
You must call the Page method for Google Tag Manager to load. Segment includes a call to `analytics.page` in your default Segment snippet, so if you want GTM to work the same as if you've installed the GTM snippet directly, you will want to keep the Page method in your snippet.
3636

3737
### Tracking All Pages
3838
When you turn on the setting to **Track All Pages** in your Optional Settings, Segment tracks events whenever you call the `page` method and sends a "Loaded a Page" event to Google Tag Manager. See the `track` section below for more info on how Segment sends events to GTM.

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,38 @@ If the above routes don't work, Segment provides these workarounds to help with
887887

888888
* Consider tracking data using one of Segment's [server-side libraries](/docs/connections/sources/#server). By using a server-side library, you no longer have to worry about ad blockers and privacy browsers preventing Segment from loading. This option may require more code to track something like a `.page()` call, since now you have to manually pass contextual information that otherwise would've been collected automatically by Analytics.js, such as `url`, `path`, `referrer`. Note that some destinations are device-mode only.
889889

890+
## Add destinations from npm
891+
892+
Bundle the destinations you want loaded from [npm](https://www.npmjs.com/package/@segment/analytics-next){:target="_blank"} instead of having them loaded from a remote CDN. This enables you to have fewer network requests when adding destinations.
893+
894+
* To add actions-based destinations from npm:
895+
896+
```js
897+
import vwo from '@segment/analytics-browser-actions-vwo'
898+
import braze from '@segment/analytics-browser-actions-braze'
899+
900+
const analytics = AnalyticsBrowser.load({
901+
writeKey: '<WRITE_KEY>',
902+
plugins: [vwo, braze],
903+
})
904+
```
905+
906+
Pass in the destination plugin to the added config option called `plugins`. A list of all action destination packages can be found [here](https://github.com/segmentio/action-destinations/blob/main/packages/destinations-manifest/package.json){:target="_blank"}.
907+
908+
909+
* To add classic destinations from npm:
910+
911+
```js
912+
import { AnalyticsBrowser } from '@segment/analytics-next'
913+
import GoogleAnalyticsIntegration from '@segment/analytics.js-integration-google-analytics'
914+
915+
// The following example assumes configuration for Google Analytics will be available in the fetched settings
916+
const analytics = AnalyticsBrowser.load({
917+
writeKey: '<WRITE_KEY>',
918+
classicIntegrations: [ GoogleAnalyticsIntegration ]
919+
}),
920+
```
921+
890922
## Open source libraries
891923

892924
Analytics.js 2.0 includes the following open source components:

0 commit comments

Comments
 (0)