bball125
Posts: 4
Joined: Tue Jan 20, 2009 10:39 pm

Javascript custom actions & Google Analytics

Is there a way that I can put tracking into my installer using google analytics? I know it uses javascript and you can create a javascript custom action, but I'm unsure how it works. Any idea? Thanks -

Lindsay
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Javascript custom actions & Google Analytics

Hi Lindsay,

You can add a javascript as an Attached Custom Action however I unsure if this will work for google analytics code.

It might be better to use the HTML Host control from the Toolbox on the Dialogs page to serve a webpage which contains the google analytics code.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
bball125
Posts: 4
Joined: Tue Jan 20, 2009 10:39 pm

Re: Javascript custom actions & Google Analytics

Unfortunately my maintenance plan stopped at version 7.0.1 so I don't have the html host control. Any other ideas? I attached the google analytics javascript as a custom action but the installer errors out when i run in. I suppose its because the function calls are incorrect but I haven't seemed to have any luck in altering it.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Javascript custom actions & Google Analytics

Hello,

Please note that javascript custom actions are different than javascript code running in a browser. I am not sure how you could use a js custom action to achieve what you want (or if you could do so) short of using the mentioned HTML Host control.

You could extend your maintenance plan to use this control. Quite a few new features have been added since 7.0.1 as can be seen from Version History and there are more to come with the release of 7.4.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
bball125
Posts: 4
Joined: Tue Jan 20, 2009 10:39 pm

Re: Javascript custom actions & Google Analytics

Thanks for the info, the price is a deterrent for us since we'd only be needing that control and its not worth the $500 for us. We will try other workarounds. Thanks!

Return to “Common Problems”