From 7aee179c006fc32ee479611b983bf70d84616e08 Mon Sep 17 00:00:00 2001 From: Nicole Emer Date: Tue, 6 Feb 2024 08:17:18 +0100 Subject: [PATCH] changed setup t.co to t.co/ --- extensions/doPlugins_global.js | 2 +- tests/doplugins/doplugins_externel_referring_domain.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/doPlugins_global.js b/extensions/doPlugins_global.js index 94af7d9a..ff6a26e1 100644 --- a/extensions/doPlugins_global.js +++ b/extensions/doPlugins_global.js @@ -599,7 +599,7 @@ s._setExternalReferringDomainEvents = function (s) { channelCategory: 'Youtube', }, { - matchRegex: /^t.co|twitter.com|android-app:\/\/com.twitter.android/, + domains: ['t.co/', 'twitter.com', 'com.twitter.android'], event: 'event51,event222', channel: 'Organic Social', channelCategory: 'Twitter', diff --git a/tests/doplugins/doplugins_externel_referring_domain.test.js b/tests/doplugins/doplugins_externel_referring_domain.test.js index 909617f9..5867b65b 100644 --- a/tests/doplugins/doplugins_externel_referring_domain.test.js +++ b/tests/doplugins/doplugins_externel_referring_domain.test.js @@ -115,7 +115,7 @@ describe('External referring domains', () => { expect(addEventMock).toHaveBeenCalledWith('event51,event222'); }); - it('should set event51 if the referring domain includes t.co', () => { + it('should set event51 if the referring domain includes t.co/', () => { getReferrerMock.mockReturnValue('t.co/'); s._setExternalReferringDomainEvents(s);