![]() |
Any javascript experts ?
I have an issue with tracking clicks via google analytics.
Here's the google tracking code : Code:
<script type="text/javascript"> Code:
<script type="text/javascript"> It is however not werking. Anyone can spot the bug ? My eyes are crossing already. |
Anybody ?
|
Your code looks fine but I don't know enough about google's code to know if that's the proper way to pass along page information to it.
|
Well fuck me, I've read the thing 500 times, I still got no clue what's going wrong.
However, this Code:
<a href="url here" onClick="javascript: pageTracker._trackPageview('track page here');">anchor</a> |
Bump for this, you never know.
|
Final bump.
|
I have a feeling this may have something to do with crossframe scripting and security.
http://msdn2.microsoft.com/en-us/lib...28(VS.85).aspx Second, what errors are you getting? Do you have the error console installed? If you do this should give you at least a hint what the problem may be. The error console is a Firefox addon, don't know about IE. Firebug is also a good addon. |
There's no javascript errors at all.
In principle, there shouldn't be a xfs issue, seeing how my script does not write anything at all, it merely reads iframed content and then calls a function. Where do you see the issue ? |
Quote:
|
|
Quote:
Try flip-flopping that. I got a different result when I ran it that way. This could be put in the head tags then use an onload call in the body tags. Also you can add some alerts like so: Code:
function trackLC(){ Other than that I would need to have a way to know if its working such as the log file (I'm assuming its writing to) |
All times are GMT -7. The time now is 09:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123