1.0.0 • Published 4 years ago

fb_cookie_clid_extractor v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

TEST

Open URL or any sponcer link from facebook

https://www.mongodb.com/collateral/how-modern-devops-teams-use-mongodb-atlas-to-enhance-productivity?utm_source=facebook&utm_medium=ps_paid_social&utm_campaign=jf_fb_ww_highcpa_dg_evergreen_commtoatlasmigration_wp_itdm_fullfunnel&utm_content=prospecting_emaillistlal_highcpa_auto_whitepaper_image_na&utm_term=prospecting_emaillistlal_highcpa_auto&fbclid=IwAR2i2gk7IDUbQ3vjz_1M-5MYhQPWPP7a-o-6JlXGGDQ-4M6fFjKjGkD8MaY

Open browser developer console

see how to open browser developer console (https://support.airtable.com/hc/en-us/articles/232313848-How-to-open-the-developer-console) and copy paste below code and that should give you same fbclid as given in url.

var cookies = document.cookie .split(';') .map(cookie => cookie.split('=')) .reduce((accumulator, [key, value]) => ({ ...accumulator, [key.trim()]: decodeURIComponent(value) }), {}); var fbclick = cookies._fbc; console.log("--------------fbclick--------------"); console.log(fbclick); console.log("-----------------------------------");

References: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc/ https://developers.facebook.com/community/threads/201248874170113/

Script Credit: https://github.com/elbomnetanel

1.0.0

4 years ago