jquery - Using a dynamic <script> (a <script> appended to the DOM by JavaScript) to load and initialize Clicky Web Analytics -


I'm creating an HTML / JavaScript widget to use on third-party sites. This widget is a & lt; Script & gt; That our customers will put on their page & lt; Script & gt; A & lt; Iframe & gt; Creates a customer's domain, and then uses all the & lt; Iframe & gt; Creates and incorporates content.

It is important that it & lt; Iframe & gt; Clicking tracking code is done to monitor clicks on the outbound link Unfortunately, when I want to & lt; Script & gt; Elements & lt; Iframe & gt; Using javascript.

I used the Clicky tracking code for the first time & lt; Iframe & gt; After adding some test outbound links, it is expected that Clicky can automatically engage with those people because it does not seem to work like this on a static page, so my next inclination is "advanced_disable" custom Option to use and clicky.log () on the link I want to track. Here is a link to a test page that is with those lines:

When clicking on a link on that test page, the action is not logged in Clicky, And a javascript error is displayed:

 clicky is not defined 

This is being defined ("clicky"), which is before I click on a test outbound link Really Loading via Firebug Console is confirmed.

Is this click successfully clicked? If so, can you provide some feedback on some sample code, a link to an implementation, or what is wrong in my code? I would also be interested in knowing whether this is also possible.

Thanks for any help or advice!

It has been further debugged in this question:


Comments

Popular posts from this blog

MySql variables and php -

c# - How can I find out if there are windows above a control? -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -