We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1357a22 commit 4ba24eeCopy full SHA for 4ba24ee
packages/analytics/src/helpers.test.ts
@@ -67,8 +67,7 @@ describe('Gtag wrapping functions', () => {
67
insertScriptTag(customDataLayerName, fakeMeasurementId);
68
const scriptTag = findGtagScriptOnPage(customDataLayerName);
69
expect(scriptTag).to.not.be.null;
70
- expect(scriptTag!.src).to.contain(`l=customDataLayerName`);
71
- expect(scriptTag!.src).to.contain(`id=${fakeMeasurementId}`);
+ expect(scriptTag!.src).to.equal(`https://www.googletagmanager.com/gtag/js?l=${customDataLayerName}&id=${fakeMeasurementId}`);
72
});
73
74
// The test above essentially already touches this functionality but it is still valuable
0 commit comments