How do I add real-time analysis of views to my questions and answers in the OS?

2

Is it possible to add some kind of live tracking or analysis of the views to the questions and / or answers that I post here in the stack overflow?

Is it possible to add Analytics to a page that is not ours?

    
asked by anonymous 29.04.2014 / 23:10

2 answers

3

Yes, it is! Using a sign image created primarily for crawl github pages .

It's very simple, just follow these steps:

Configuration Instructions

First, sign in to your Google Analytics account (if you do not have an Analytics account, however, get a here / a>) and create a new property :

  • Select "Website", use the "Universal Analytics" tracking type
  • Website Name: anything you want (e.g. StackOverflow Questions and Answers)
  • Website URL: link
  • Click the "Get Control ID" button, copy the ID to type UA-XXXXX-X on the page that follows

Then add a tracking image to the question / answer pages you want to track:

  • https://ga-beacon.appspot.com/UA-XXXXX-X/tipoConta/nome_pergunta
  • UA-XXXXX-X should be your tracking ID
  • accounttype/question_name is an arbitrary path.

Add this image to your question / answer (if you have both on the same page, choose only one), and you're done!

Here is the example used for this page:

    ![Beacon][1]

    [1]: https://ga-beacon.appspot.com/UA-50149210-2/PT_StackOverflow/Como_faco_para_adicionar_analise_em_tempo_real_das_visualizacoes_nas_minhas_perguntas_e_respostas_no_SO_QA?pixel

Once everything is set up, install this custom panel in your account for a view in real time nice (as shown in the image below).

And the result is this:

Edit14-05-2014:

After be discussed in Meta.SE , I must add detail to this answer that the use of this headlamp or some similar may be subject to approval by the Terms of Service of the target website.

In case of SE, this violates Stack Exchange terms of service , section 3 (e):

  

Subscriber represents, warrants and agrees that it will not contribute any Subscriber Content that ... (e) contains a virus, trojan horse, worm, time bomb or other computer programming routine or engine that is intended to damage , detrimentally interfere with, surreptitiously intercept or expropriate any system, date or information.

    
29.04.2014 / 23:10
5

How about using the Stack Exchange's own API ?

Look at a small fragment of what you can do:

Api de respostas:
/answers                  Obtem todas as respostas do site
/answers/{ids}            Obtem respostas identificadas por um set de IDs
/answers/{id}/accept      Dá um accept na resposta identificada [precisa de autorizacao]
/answers/{id}/accept/undo Desfaz o accept
/answers/{ids}/comments   Obtem os comentários nas respostas selecionadas pelos IDs
...

documentation has a lot more.

  

I have pointed this path as a possibility, because even if we do not have methods with the data of the desired visualizations, it would be the case to suggest in the SE Goal .

    
30.04.2014 / 02:22