File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 104104 }
105105
106106 // Support cross-domain tracking
107- function appendCrossDomainClickId ( clickId ) {
107+ function addClickTrackingToLinks ( clickId ) {
108108 let { domains } = getOptions ( script ) ;
109109
110110 if ( ! domains || domains . length === 0 ) {
150150
151151 if ( clickId ) {
152152 checkCookieAndSet ( clickId ) ;
153- appendCrossDomainClickId ( clickId ) ;
153+ addClickTrackingToLinks ( clickId ) ;
154154 return ;
155155 }
156156
188188 }
189189 const { clickId } = await res . json ( ) ; // Response: { clickId: string }
190190 checkCookieAndSet ( clickId ) ;
191- appendCrossDomainClickId ( clickId ) ;
191+ addClickTrackingToLinks ( clickId ) ;
192192 } ) ;
193193 }
194194
195195 watchForQueryParams ( ) ;
196- appendCrossDomainClickId ( ) ;
196+ addClickTrackingToLinks ( ) ;
197197
198198 // Listen for URL changes in case of SPA where the page doesn't reload
199199 window . addEventListener ( 'popstate' , watchForQueryParams ) ;
You can’t perform that action at this time.
0 commit comments