Skip to content

Commit

Permalink
Merge pull request #204 from spring-media/TRAC-1966_getpocket_referrer
Browse files Browse the repository at this point in the history
changed setup t.co to t.co/
  • Loading branch information
nickyanalytics authored Feb 6, 2024
2 parents 4d67a5f + 7aee179 commit dcd77a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/doPlugins_global.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcd77a4

Please sign in to comment.