Hi everybody,
How can I get referrer url for the incoming visitor? I would like to add links to pages which i think people might want to look at depending on the query they've typed in the search engine and depending on the page they were landed at.
...Frequently I notice that google and others are not matching pages perfectly.
Thanks! Evgeny.
On Wed, Oct 22, 2008 at 9:50 AM, Evgeny Fadeev fadeev@rocketmail.com wrote:
How can I get referrer url for the incoming visitor? I would like to add links to pages which i think people might want to look at depending on the query they've typed in the search engine and depending on the page they were landed at.
You will need an extension.
2008/10/22 Andrew Garrett andrew@epstone.net
On Wed, Oct 22, 2008 at 9:50 AM, Evgeny Fadeev fadeev@rocketmail.com wrote:
How can I get referrer url for the incoming visitor? I would like to add links to pages which i think people might want to
look at depending on the query they've typed in the search engine and depending on the page they were landed at.
You will need an extension.
-- Andrew Garrett
I think this is feasible with JavaScript.
-- Delhovlyn
In addition, caching is an issue with this.
I just wrote up a quick extension, and it would only return the url to the edit page, and it would not change until I cleared the server cache.
Soxred
On Oct 22, 2008, at 8:06 AM [Oct 22, 2008 ], Sylvain Brunerie wrote:
2008/10/22 Andrew Garrett andrew@epstone.net
On Wed, Oct 22, 2008 at 9:50 AM, Evgeny Fadeev fadeev@rocketmail.com wrote:
How can I get referrer url for the incoming visitor? I would like to add links to pages which i think people might want to
look at depending on the query they've typed in the search engine and depending on the page they were landed at.
You will need an extension.
-- Andrew Garrett
I think this is feasible with JavaScript.
-- Delhovlyn _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Soxred93 wrote:
In addition, caching is an issue with this.
I just wrote up a quick extension, and it would only return the url to the edit page, and it would not change until I cleared the server cache.
Soxred
On Oct 22, 2008, at 8:06 AM [Oct 22, 2008 ], Sylvain Brunerie wrote:
2008/10/22 Andrew Garrett andrew@epstone.net
On Wed, Oct 22, 2008 at 9:50 AM, Evgeny Fadeev fadeev@rocketmail.com wrote:
How can I get referrer url for the incoming visitor? I would like to add links to pages which i think people might want to
look at depending on the query they've typed in the search engine and depending on the page they were landed at.
You will need an extension.
-- Andrew Garrett
I think this is feasible with JavaScript.
-- Delhovlyn
Any sort of extension would have the same problems as a {{CURRENTUSER}} magic word, unless it added things after the Parser/Parsercache, though that could still have problems if you use an HTML cache like Wikimedia's squid cache. As Sylvain Brunerie said though, it could be implemented with javascript, with the document.referrer property, though the actual implementation would depend on what you were trying to do.
You could probably put something like: <div class="referrer-google">Text</div> in the article text, with the class set to display:none by default in the site CSS or JS, then check the referrer with some regexes, and if it matches the "google" regex, append a new stylesheet (appendCSS() is available in wikibits.js since 1.13) that overrides the previous display:none.
wikitech-l@lists.wikimedia.org