Knowledge Base support case for AllWebMenus Pro, abstracted and stripped of all user’s private info.


Initial Email From:
Allen
Initial Email Subject:  add google analytics to all web menus 
Support Case Month: January 2014

How do I add google analytics to a website? Running latest version 5 and build.

would like to track the PDF pages downloaded for the site.

Thanks,
Allen

Reply From: Likno Customer Support

Hello Allen,

Google Analytics is not related to AllWebMenus.

You need to sign in analytics.google.com for an account. Then, add your website you want to track and this will give you a JavaScript code to add to your page.

Then, you will be able to see statistics for your pages.

Is this what you were looking for or you may refer to Google Sitemaps?

Thank you!

Kind Regards,  

Aggelos Tsakonas
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

Reply From: Allen

Thanks for your prompt response.  When you click on the menu button on any topic, the program goes directly to a downloadable PDF page.  Google analytics is not reporting the page that was clicked, since it is a PDF page, not an HTML page, when rendered.  So no report is available.

Can I add the unique Google JavaScript code, to the action section of the button JavaScript Command area to the click state, and have when the button is clicked, report back to Google Analytics?

Not sure how this works, is why I am asking, since this website has only 2 HTML pages, and the rest are PDF driven from menu buttons, to view only and download, with no HTML.

Regards,
Allen

Reply From: Likno Customer Support

Hello Allen,

Please, take a look on this: https://support.google.com/analytics/answer/1136922?hl=en

So, I think adding the code for the Google Analytics as shown below it might work. Would you like to give it a try?

google analytics tracking code on AllWebMenus

Kind Regards,  

Aggelos Tsakonas
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

Reply From: Allen

Thanks for your support.... Will Get back to as soon as possible.

Tags: , , , , , ,

 

Knowledge Base support case for Likno Web Modal Windows,  abstracted and stripped of all user’s private info.


Initial Email From:
Paolo
Initial Email Subject: Additional code to be added to Modal Windows
Support Case Month: February 2013

Hello,

Sorry for my question but I don't remember if it is possible to add somewhere additional codes (such as the one of Google Analytics or javascript strings used to count accesses to web pages) to the modal windows while creating them with your tool.

Please, let me know.

Kind regards,
Paolo

Reply From: Likno Customer Support

Dear Paolo,

I guess this is possible if you are loading an “external” page into the modal window. Note however that Google Analytics may not work as expected when you try to count framed pages.

I believe the best method to use is to count the page using Google’s JS functions and not with the standard <script> that you embed in the page.

Best Regards, 
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Paolo

Hi there!

To be more precise, I need to add a <script> line of code working as counter. But as I use your modal windows in order to show images, flash animation, etc. placed into .htm pages to be shown in the modal window, but when i load them online it seems to me that the counter doesn't work.

So, I was asking you if it possible to place the <script> code directly into the modal window layout and not in the .htm external page containing images of flash files.

Please, let me know.

Regards,
Paolo

Reply From: Likno Customer Support

Dear Paolo,

Putting the <script> directly into a modal would probably not work. The best way is through an “external” page.

The thing however is that you cannot simply use the typical code like this:

<script type="text/javascript">

var pageTracker = _gat._getTracker("yourcode");

pageTracker._initData();

pageTracker._trackPageview();

</script>

This will most likely add extra views to the parent page as Google tries to capture the URL at the top of the page.

Instead you should directly use Google’s API like this:

pageTracker._trackPageview('/my_counter_name');

this should work without any problems if you use it within the iframe. Note that you can give any name to the “counter” and it will appear along with your pages in the analytics.

Best Regards, 
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Tags: , , , , , , , , ,

 


© 2009-2013 Likno Blog – Drop-Down Menus, Javascript Menus, CSS Menus, jQuery Scrollers/Sliders, Modal Windows