SiteCatalyst?
SeanSands - August 8, 2006 - 12:49
Has anyone here had the opportunity to work with Omniture's SiteCatalyst Web Analytics System and Drupal?
If so, has anyone built connection scripts to allow the variables for Article Sections to be used in the Site Titles? I'mnota developer so any help onthe technical end would be greatly appreciated.
-Sean

template variables
It requires only a minor amount of coding. Drop your Omniture javascript into your template, and where you need to insert data, just echo $somevariable. See the phptemplate theme developer documentation for a detailed list of variables that are available in any given template context.
In page.tpl.php, the $breadcrumb variable is useful but it is cluttered with HTML. Something like this works:
var s_pageName="<?php$mytitle = str_replace('Home ','',strip_tags($breadcrumb));
$mytitle = str_replace('»','/',$mytitle);
echo "$mytitle / $title";
?>"
Depending on the data you gather with the Drupal profile/registration system, you might want to load the full $user object, then echo some data points into Omniture s_prop vars:
var s_prop11="<?php echo $user->profile_gender; ?>"var s_prop12="<?php echo $user->profile_zip; ?>"
... et cetera.
Thanks for the code segments
Thanks for the code segments Steve. When I get full on into testing this I may call on your knowledge again. Thanks a bunch!
Module now available
There is also the Omniture module available which helps to integrate the SiteCatalyst code: http://drupal.org/project/omniture
--
Open Prediction Markets | Drupal Dashboard | Learn more about Drupal - buy a Drupal Book