FAQ Database Discussion Community


Hard code window.document.referrer

javascript,jquery,referrer
I have a form that needs to pull a value from the referrer URL and set it as the value of an input field. I need to be able to test this locally before pushing a change, but not sure how to set the header in chrome/firefox to hard code...

Google Analytics Referral Path Empty When Using Campaign URL Builder

google-analytics,referrer,referrals
A URL was generated using Google Analytic's (GA) URL Builder (https://support.google.com/analytics/answer/1033867?hl=en). The URL includes the utm_source and other required params for GA. When clicking on a link with this URL the Referral Path is not available. Instead only the Source shows with an empty Referral Path. The Source is set...

how reliabile is document.referrer, can it be spoofed/ faked?

javascript,referrer,http-referer,spoofing
How reliable is document.referrer in determining the source? I want a website (A) to only work if the visitor came from a specific other website (B). I am planning to use document.referrer in website A to check whether website B is the source (check is done server-side). Is it safe...

Hide referrer header in API request

javascript,api,google-api,cross-domain,referrer
I need to make requests to Google Translate Text-To-Speech API. I have an enabled key but keep getting blocked by No Access-Control-Allow-Origin. I've posted more about it here: Google Translate API - No Access Control Origin with Text to Speech The following sources, http://weston.ruter.net/2009/12/12/google-tts/ and Request to Google Text-To-Speech API...

referrer URL not being grabbed correctly

javascript,jquery,referrer
I am trying to pull the referrer URL, apply a regex to it, and using the result as the value in a textfield. The issue is that the current implementation is not pulling the referrer URL into the textfield, which would come from clicking a link on the previous page,...

Is there any way to control/route content by referrer value in Expression Engine?

expressionengine,referrer
Let’s say that I have a carousel on my index page. Inside the template for index, it loads a particular channel, “Foo” <div "slider"> <ul class="slides"> {exp:low_reorder:entries set="foo" dynamic="no"} <li class="foo_{entry_id}"> <div class="container"> <div class="row-fluid"> <div class="span12"> {foo_html} <style type="text/css">{foo_css}</style> </div> </div> </div> </li> {/exp:low_reorder:entries} </ul> </div> That channel, naturally,...