Merged
Conversation
pooyaj
reviewed
Aug 10, 2020
| options || (options = {}); | ||
| options.apiKey || (options.apiKey = 'YOUR_API_KEY'); | ||
| options.host || (options.host = 'cdn.segment.com'); | ||
| options.ajsPath || (options.ajsPath = '/analytics.js/v1/\' + key + \'/analytics.min.js'); |
Contributor
Author
There was a problem hiding this comment.
@pooyaj key is a variable in the scope of where settings.ajsPath is renderered: https://github.com/segmentio/snippet/pull/50/files#diff-7ca0ae40f9ef9562ed8a5fcdce4f82d2R71
pooyaj
approved these changes
Aug 10, 2020
JackCuthbert
added a commit
to JackCuthbert/snippet
that referenced
this pull request
Oct 26, 2020
From the PR segmentio#50 merged in 7119bcc
JackCuthbert
added a commit
to JackCuthbert/snippet
that referenced
this pull request
Oct 26, 2020
From the PR segmentio#50 merged in 7119bcc
JackCuthbert
added a commit
to JackCuthbert/snippet
that referenced
this pull request
Oct 26, 2020
From the PR segmentio#50 merged in 7119bcc
juliofarah
pushed a commit
that referenced
this pull request
Jun 30, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds an option
ajsPathto override the default analytics.min.js locationTesting
Using default
The relevant bit of generated snippet:
Setting ajsPath