Skip to content

Commit

Permalink
feat(core): Allow to use secure cookies on https instances
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Nov 11, 2024
1 parent ed8acb1 commit c06872d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/analytics/src/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class AnalyticsService {
(() => {
this.paq.push(['setTrackerUrl', url + '.php']);
this.paq.push(['setSiteId', this.options.id]);
this.paq.push(['setSecureCookie', location.protocol === 'https:']);
const g = document.createElement('script');
const s = document.getElementsByTagName('script')[0];
g.type = 'text/javascript';
Expand Down

0 comments on commit c06872d

Please sign in to comment.