Integrating Coremetrics Click Tracking in Flash
Here is a good way to get click tracking in Coremetrics to work:1) Embed the flash movie in the web page using a relative path, NOT an absolute path.2) Include all of the coremetrics javascript files in that page as you normally do. Ensure that your cmdatatagutils.js file is up to date and includes a method called cmCreateManualLinkClickTag().3) Include cmForFlash.js in the page (this was attached to the e-mail I sent you).4) Within the flash movie, anywhere that you need to implement tracking, use the getURL() method to do so. The parameter to pass in this method varies depending on what you would like to do:
- To track a page view, use: ‘javascript:cmCreatePageviewTag(“pageID”, “categoryID”);’
- pageID is a unique name that will identify the page to Coremetrics
- categoryID names the category grouping into which this page will be rolled within Coremetrics. This might be a channel name, the name of the tool, or something like “flash”.
- If you add a new category name you will have to change the .cdf file which provides Coremetrics with a mapping of category names and page hierarchy. If this change is not made to the .cdf file, analytic data may be lost.
- To track a click, and redirect to a new page, use ‘javascript:cmFlashRedirect(“URL”, “linkName”)’
- To track a click without going to a new page, param = ‘javascript:cmCreateManualLinkClickTag(“URL”, “linkName”);’
- URL is the url (relative or absolute) that the link points to
- linkName is the name by which CoreMetrics will identify this link in reporting
Written by:
Dorian D. Regester
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

