Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Remove from facebook pixel
- This topic has 7 replies, 2 voices, and was last updated 5 years ago by
Ernest Marcinko.
-
AuthorPosts
-
May 5, 2021 at 9:45 pm #33087
sumaiya91
ParticipantWe are in the health industry and as a result we do not want facebook pixel to pick the queries from the search bar. We are getting the below error as reported by facebook event manager. This is coming from your plugin which is sending data to the facebook manager
Potentially Violating Health Data Sent to Facebook
We need to know how to disable the search queries from getting picked up from facebook pixel.
The data is getting picked up from the parameter ?s=. See below the effected URL as reported from the facebook event manager
https://therastore.co.nz/?s=_removed_&_filteredParams=_removed_May 6, 2021 at 8:23 am #33092Ernest Marcinko
KeymasterHi,
The plugin does not intergrate with any facook features, nor use any code related to facebook API. It does not intergrate any tracking codes either.
The URL you sent is only a generic search query. Facebook pixel may automatically collect this information, I am not familiar with how it works. You may have to look up their documentation or remove the pixel tracking.
May 7, 2021 at 12:25 am #33107sumaiya91
ParticipantOk then help me another way. I have changed the name of the default query string to “search” from “s”. But using the below code snippet
//Remove the default search var and add a custom one
add_filter(‘init’, function(){
global $wp;
$wp->add_query_var( ‘search’ );
$wp->remove_query_var( ‘s’ );
} );//If the custom var is passed copy that over to the default “s” var
add_filter( ‘request’, function( $request ){
if( isset( $_REQUEST[‘search’] ) ){
$request[‘s’] = $_REQUEST[‘search’];
}
return $request;
} );So the site works with https://newbook.therastore.co.nz/?search=collagen rather then https://newbook.therastore.co.nz/?s=collagen
But now your plugin is still referring back to “s” is not working when the “search” button is clicked. How do i update the input box so it uses “search” rather than “s” variable.
May 7, 2021 at 8:07 am #33109Ernest Marcinko
KeymasterYou can do that via changing the magnifier and click actions to a custom URL.
Into the custom URL box then try typing:?search={phrase}May 9, 2021 at 10:43 pm #33138sumaiya91
ParticipantThank you.
It is working now.
Can you also confirm:
If i can delete the free version of the plugin now that I have the pro version
Also I am testing the pro version on a test site but I want to add it to the production site as well. How can I do this as I believe this plugin is a single licensed plugin.
May 10, 2021 at 8:40 am #33146Ernest Marcinko
KeymasterYou can safely remove the free version, they are separate plugin, working independently.
Using it on test and production environments is perfectly fine with a single license, you don’t need to purchase another one. You can read more about activations on staging/test environment here.
May 17, 2021 at 1:21 am #33250sumaiya91
ParticipantHi,
I have found out another issue. It is not searching the content even though I have enabled “content search” in the backend. You can test it here https://newbook.therastore.co.nz/ and search “omega”. You can see that the posts are not showing in the dropdown even though there are posts with “omega” in it.
Refer to the attached screenshot.
May 17, 2021 at 9:29 am #33255Ernest Marcinko
KeymasterHi,
Which items does not show? Can you please link to one? I can see items in the dropdown, but I don’t know which ones are missing. Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.