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
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>
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.