Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Is it possible to enable/disable the tracking at will? #34

Open
stuller-adriahuertascaparros opened this issue Mar 22, 2024 · 1 comment

Comments

@stuller-adriahuertascaparros
Copy link

stuller-adriahuertascaparros commented Mar 22, 2024

Hi,

I'm working on a feature to give the user the option to enable / disable cookies. I've tried to disable the tracking with LinkedInTag.init(linkedinPartnerId, 'dc', true) and, even though if I run LinkedInTag.disabled I get a true value, I can still see post requests with tracking info being made to https://px.ads.linkedin.com/wa/, so is it really disabled?

Besides, I've realised that I can't delete any cookie from linkedin because, despite the fact that I can see the cookies in devTools, they are not in document.cookie. Is that normal?

@jelleklaver
Copy link
Owner

First of all, sorry for my late response. I'm personally not using this package anymore and I notice I don't have a lot of time to keep this all up-to-date.

It should indeed be disabled when initialising it with init(..., ..., true) indeed. However, you say it still makes a call to ads.linkedin.com and that should of course not happen. Are you sure that the call is coming from this package or might it be from another implementation?

I'm no expert on LinkedIn cookies, but if you don't find them in document.cookie I assume those are HTTP Only? You should be able to see that in the devTools as well. If they're HTTP Only they are not accessible through javascript.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants