Code generator

What kind of code do you need to generate?


The use of clicky_custom allows you to control several aspects of how Clicky tracks visitors.
Please see the clicky_custom page for an explanation of all options.


For a full explanation of what each item in the form means, see the video analytics documentation.


The landing page URL and the 'utm_campaign' variables are required. The others are optional.
For a full explanation of 'UTM' variables and how to use them, see here.



Copy and paste the code/text below!


<script type="text/javascript"> var clicky_custom = clicky_custom || {}; clicky_custom.timeout = {timeout}; clicky_custom.html_media_track = {html_media_track}; clicky_custom.cookies_disable = {cookies_disable}; clicky_custom.sticky_data_disable = {sticky_data_disable}; clicky_custom.outbound_disable = {outbound_disable}; clicky_custom.video_disable = {video_disable}; clicky_custom.history_disable = {history_disable}; clicky_custom.ping_disable = {ping_disable}; clicky_custom.pageview_disable = {pageview_disable}; clicky_custom.osa_disable = {osa_disable}; clicky_custom.heatmap_disable = {heatmap_disable}; </script> {website-url}?utm_campaign={campaign-name}&utm_content={campaign-content}&utm_source={campaign-source}&utm_medium={campaign-medium}&utm_term={campaign-term} <script src='//static.getclicky.com/inc/javascript/video/youtube.js'></script> <script src='//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js'></script> <!-- this box will contain the video once the page has loaded --> <div id="{div-id}"></div> <script type="text/javascript"> swfobject.embedSWF("http://www.youtube.com/v/{video-id}?enablejsapi=1&playerapiid={div-id}", "myvideo", "425", "356", "8", null, null, { allowScriptAccess: "always" }); </script> <script src="//static.getclicky.com/inc/javascript/video/jwplayer.js"></script> <div id="{div-id}"></div> <script type="text/javascript"> jwplayer('{div-id}').setup({ flashplayer: "{swf-url}", file: "{video-url}", image: "{img-url}", events: { onReady: function(ev) { onJWPlayerReady('{div-id}'); } } }); </script> <script src="//static.getclicky.com/inc/javascript/video/vimeo.js"></script> <script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <div id="{div-id}"></div> <script type="text/javascript"> // this 'meta' object stores the video's ID, which we use to create the unique URL // it can also (optionally) store the title, which we've added in here too var _vimeometa = {}; _vimeometa.myvideo = { 'id': '{vid-id}', 'title': '{title}' }; // required variables to pass to vimeo flash player var _vimeo_flashvars = { show_portrait: 1, show_byline: 1, show_title: 1, js_api: 1, js_onLoad: 'onVimeoReady', js_swf_id: '{div-id}', clip_id: '{vid-id}' }; // and finally, we embed the video swfobject.embedSWF("http://vimeo.com/moogaloop.swf", "{vid-id}", "504", "340", "9.0.0", "expressInstall.swf", _vimeo_flashvars, { allowscriptaccess: 'always', allowfullscreen: 'true' }); </script>