0.9.6 • Published 4 years ago
remove-fbclid v0.9.6
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:
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*