remove-fbclid
v0.9.6
Published
Removes the fbclid parameter from the URL which is appended by facebook
Downloads
17
Readme
remove-fbclid
Removes the parameter fbclid
that facebook adds on some shared URLs.
The fbclid
parameter will be removed via a window.history.replaceState
on current browsers and via window.location.replace
on older ones.
More info about that parameter:
- https://fbclid.com/
- https://stackoverflow.com/q/52847475/72478
Usage
Do the following once, on initial page load:
const removeFbclid = require("remove-fbclid");
removeFbclid();
or:
import removeFbclid from "remove-fbclid";
removeFbclid();
Other tips (unrelated to this JavaScript library)
Add the following in your /robots.txt
to prevent indexing:
User-agent: *
Disallow: /?fbclid*