We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

[Closed] How do I delete / hash location parameters from URL

How Do I?

Ashish's avatar
Ashish
5 posts
4 years ago
Ashish's avatar Ashish

Hi All,

Facebook has flagged recently that one of my page which is service finder is sending location data to Facebook Actions and hence “Potentially violating” Facebook Policy”. The solution they suggest is - Start hashing or remove these parameters from the PageView. Does anyone know how to do that?

Below are the parameters being captured and sent to FB. ?suburb=removed&suburb_lat=removed&suburb_lng=removed&suburb_radius=removed&service_finder_cat=removed&filteredParams=_removed

My website is running on ExpressionEngine 3.4.4

Thanks

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

I’m curious, how does Facebook know this?

It sounds like you are leaking data to them somewhere - do you have any Facebook surveillance scripts on your site such as 3rd party “share” buttons, these can leak data to thousands of adtech companies without you knowing.

       
Ashish's avatar
Ashish
5 posts
4 years ago
Ashish's avatar Ashish

Hi Rob, I have Facebook Pixel installed on my website to track conversions. Thx

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

Where do the link parameters come from, is it from your sites search results in EE? If so what search facility does your site use, native or a 3rd party module like “Low search”?

       
Ashish's avatar
Ashish
5 posts
4 years ago
Ashish's avatar Ashish

Hi Rob,

I think it’s the native search, here is a part of template code for your reference:

<form id="serviceFinderForm" class="form-finder">
   <div class="form-group col-xs-12 col-sm-4 col-md-3 text-left">
    <label for="suburb" class="blue-text regular">Location</label>
    <span class="blue-text medium use-my-location visible-xs pull-right"><u>Use my location</u></span>
    <input type="text" class="form-control regular" id="suburb" name="suburb" placeholder="Enter Town or Suburb">
    <span class="blue-text medium use-my-location hidden-xs"><u>Use my location</u></span>
    <input type="hidden" id="suburb-lat" name="suburb_lat" value="">
    <input type="hidden" id="suburb-lng" name="suburb_lng" value="">
    <input type="hidden" id="suburb-radius" name="suburb_radius" value="20">
  </div>
       
Ty Martin's avatar
Ty Martin
232 posts
4 years ago
Ty Martin's avatar Ty Martin

I’m using the EE6 search form and the results page already hashes the URL, eg. https://domain.com/search/results/9aca7ea785177bde687ae94c0d527e27/

Perhaps you could remove the FB pixel and third party tracking code from these pages.

Or, you could save the user’s location as a cookie and read it from the server.

       
Ashish's avatar
Ashish
5 posts
4 years ago
Ashish's avatar Ashish

Hi Ty Martin, Thanks for the suggestion. I have removed the FB pixel to load on that particular page for the time being. Regards

       
Andy McCormick's avatar
Andy McCormick
183 posts
about 4 years ago
Andy McCormick's avatar Andy McCormick

Ashish, is it fair to mark this one “solved?” Thanks

       
Ashish's avatar
Ashish
5 posts
about 4 years ago
Ashish's avatar Ashish

Hi Andy, Not solved actually, but you can mark it ‘close’ since the work-around of removing FB pixel seems to be the only solution. Thanks

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.