English 中文(简体)
折合单和执行工作
原标题:comscore api and implementation related

A friend of mine is planning to implement comscore for tracking his site and I m helping him do that. Went through a pdf doc that described the variables c1,c2...their purpose, if required or not etc. My question is regarding the code implementation. The code creates a script element and appends the src value and places it in the body tag. There s no specific reason mentioned as to why it s in the form of inserting it into the DOM structure rather than merely placing the chunk of code in beginning or end respectively. Also if possible please let me know if any of you uses comscore for tracking your site analytics and if its better than Omniture Site Catalyst..if so in what way. Thanks in advance, Optimus.

最佳回答

创建文字标签并在人力部添加文字,从根本上说是按时间顺序装上计分文字。

如果你向你的负责人补充,它将阻止所有进一步装载,直到计算记分稿本身被下载和执行。

如果你在结束发言时说,你将推迟管理局的准备活动,因为这可能会延误等待活动的文字的执行。

In short, it s better for your load times to create the script tag and add it to the DOM. Even better is to not do this until after the load event.

http://www.aaronpeters.nl/blog/why-loading-third-parties-scripts-async-is-not-good-enough”rel=“nofollow” http://www.aronpeters.nl/blog/why-loading-third-parties-scripts-async-is-not-good-enough

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签