Генерируйте события Google Analytics (__ utm.gif запросы) серверная сторона

Как указано в комментарии, вы просто набираете «d: /» в минибуфере, находясь в ido-find-file. Вам не нужно быть в начале строки, он достаточно умен, чтобы знать, что вы пытаетесь сделать.

C-x C-f d:/ MyFile.txt

укажет вам на файл D:/MyFile.txt

29
задан Elnur Abdurrakhimov 9 March 2013 в 12:24
поделиться

5 ответов

I asked a similar question recently and somebody gave me a link, and I found another from the same site:

http://www.vdgraaf.info/wp-content/uploads/image-url-explained.txt
http://www.vdgraaf.info/wp-content/uploads/urchin-image.txt (included here)

Google's Analytics code is provided in the form of a JS library, ga.js. When a tracking function is called from this library, a request is made to a gif file on the GA servers at either of the following URLs:

http://www.google-analytics.com/__utm.gif //from http pages
https://ssl.google-analytics.com/__utm.gif //from https pages

The following are parameters that may be used in the request to provide GA with detailed information:

?utmwv=1 //Urchin/Analytics version
&utmn=634440486
&utmcs=UTF-8 //document encoding
&utmsr=1440x900 //screen resolution
&utmsc=32-bit //color depth
&utmul=nl //user language
&utmje=1 //java enabled
&utmfl=9.0%20%20r28 //flash
&utmcr=1 //carriage return
&utmdt=Linklove » The optimum keyword density //document title
&utmhn=www.vdgraaf.info //document hostname
&utmr=http://www.google.nl/search?q=seo+optimal+keyword+density&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_nlNL210NL211 //referer URL
&utmp=/the-optimum-keyword-density.html //document page URL
&utmac=UA-320536-6 //Google Analytics account
&utmcc= //cookie settings
    __utma=
                    21661308. //cookie number
                    1850772708. //number under 2147483647
                    1169320752. //time (20-01-2007) cookie first set
                    1172328503. //time (24-02-2007) cookie previous set
                    1172935717. //time (03-03-2007) today
                    3;+
    __utmb=
                    21661308;+ //cookie number
    __utmc=
                    21661308;+ //cookie number
    __utmz=
                    21661308. //cookie number
                    1172936273. //time (03-03-2007) today
                    3.
                    2.
        utmccn=(organic)| //utm_campaign
        utmcsr=google| //utm_source
        utmctr=seo+optimal+keyword+density| //utm_term
        utmcmd=organic;+ //utm_medium

Remember that the &utmcc values need to be URL encoded.


The links in this answer have proven to be a little unreliable, so here are some other resources that might be useful:

30
ответ дан 28 November 2019 в 01:51
поделиться

Интересное требование ...

Лучше всего было бы попытаться немного перепроектировать javascript Google Analytics ...

С помощью firefox и firebug перейдите на веб-сайт, который использует Google Analytics, а затем откройте firebug и посмотрите GET, отправленный в Google Analytics. Если вы затем сможете создать HttpRequest с теми же параметрами и заголовками, вы сможете обмануть аналитику Google, заставив думать, что вы переходите с веб-страницы.

0
ответ дан 28 November 2019 в 01:51
поделиться

Изучив мои файлы cookie в firefox на сайте, который является известным пользователем Google Analytics, я вижу, что он хранит 3 значения (все 3 начинаются с 2 подчеркиваний):

  • __utmc - 9-значное целое число (возможно)
  • __ utma - очень длинное целое с введенными точками (начинается с 9 цифр выше)
  • __ utmz - разделено длинным строковым периодом (начинается с 9 цифр от utmc)

Я предполагаю, что utmc - это идентификатор вашего сеанса отслеживания.

1
ответ дан 28 November 2019 в 01:51
поделиться

Embed the script in an HTML page with variable placeholders for page title and such, then load the page in an embedded IE instance server side. The GA script allows you to track page events by specifying parameters to the main tracking function, so all you'd have to do is keep the template HTML page in memory, replace the placeholders, and load the page in the embedded IE instance. The IE instance would parse and execute the javascript like it were a normal page and bingo, you've got your tracking.

This is theoretical, of course, and not tested.

0
ответ дан 28 November 2019 в 01:51
поделиться

вы можете попробовать http://code.google.com/p/serversidegoogleanalytics/ . он работает для меня (в сочетании с фреймворком zend для HTTP-запроса).

5
ответ дан 28 November 2019 в 01:51
поделиться
Другие вопросы по тегам:

Похожие вопросы: