Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TikTok Pixel Destination #1937

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,15 @@ export const destination: BrowserDestinationDefinition<Settings, TikTokPixel> =
},
useExistingPixel: {
// TODO: HOW TO DELETE (reusing will not include Segment Partner name)
label: 'Use Existing Pixel',
label: '[Deprecated]Use Existing Pixel',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label: '[Deprecated]Use Existing Pixel',
label: '[Deprecated] Use Existing Pixel',

type: 'boolean',
default: false,
description:
'Important! Changing this setting may block data collection to Segment if not done correctly. Select "true" to use an existing TikTok Pixel which is already installed on your website. The Pixel MUST be installed on your website when this is set to "true" or all data collection to Segment may fail.'
required: false,
description: 'Deprecated. Please do not provide any value.'
}
jae-rhee-tiktok marked this conversation as resolved.
Show resolved Hide resolved
},
initialize: async ({ settings }, deps) => {
if (!settings.useExistingPixel) {
initScript(settings)
}

initScript(settings)
jae-rhee-tiktok marked this conversation as resolved.
Show resolved Hide resolved
await deps.resolveWhen(() => window.ttq != null, 100)
return window.ttq
},
Expand Down