• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

QUESTION Display only if... current referrer not function well to me, can help me?

webstower

New member
Messages
1
Likes
0
Points
1
#1
I have a facebook pixel that must show if the referrer in the url contains a particular chain, suppose: firmAgainstCancer

Well, if I add to the code snippets the filter, then it not show, something is not working:

The condition you can see in the screenshot

The url that came from another site is: cancerconciencia.org.ar/donar/formulario-de-donaciones/?ref=firmAgainstCancer

screenshotwoodysnippets.png
 

Temyk

Developer & Support
Staff member
Messages
608
Likes
31
Points
28
#2
Hello.

The plugin uses the HTTP_REFERER server variable:
'HTTP_REFERER The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this
In this case, the plugin still drops the URL parameters after the sign ?, so your additional logic doesn't work.