Forum Discussion
jeffshurtliff
Boss
I also just found the FreeMarker you need to capture the referer value, which is the source URL where the user came from.
<#-- Get the referer URL -->
<#assign referer = http.request.getHeader('referer')!'' />
Simple enough. Then you can play with the URL however you need to determine where it came from. For example:
<#if referer?contains('google.com')>
<p>You came here via Google!</p>
<#else>
<p>You did not come here via Google!</p>
</#if>
Hope this helps!
ebonifacio
3 years agoMentor
Thanks jeffshurtliff
I'm going to try this, it looks a better and easy solution.
Related Content
- 2 years ago
- 2 months ago