Adventures with Omniture WordPress Plug-in
Update: I have been working on my own version of an Omniture WordPress Plugin! Find it here: http://www.rudishumpert.com/projects/wp-omniture/
It's rare to find a plug-in these days that work exactly as advertised. Hell, it is rare to find one that is only somewhat painful to implement. So when I began the day with the task to implement the WordPress plug-in for Omniture I was skeptical. But it was much easier that I thought. Below are the steps I went through to install the plug-in, perhaps this will be helpful to someone!
My company is running a a blog using the 2.7.1 version of WordPress hosted on our own server. I set up a brand new report suite in SiteCatalyst just for the blog, exported the new s_code.js file and moved it to the linux server. Once on the server it was just a matter of moving the plugin files into the wp-content/plugins/ folder.
Then move the new s_code.js file into the wp-content/plugins/OmnitureSiteCatalyst/js/ folder. Once all the files are on the server, login to the admin section of your blog, and under Plug-ins, find and activate the Omniture plugin.

You're almost there. Next you go to Settings > Omniture Settings.
On this page you provide the plugin with the pathing information to the s_code file. The last item on the page needs the noscript Image url like this : http:/yournamespacehere.112.2o7.net/b/ss/reportsuite-name-here/1/H.20.3--NS/0

All that is left is to turn on the tracking and you're done.
Note: We were using the "Bookmarkify" plugin to add those handy links to the share the blog posts with others, but adding the Omniture plug-in caused some formatting issues with text wrapping all over the place. I switched to a different extension called: Add to Any, and it works fine.
Within 20 minutes I was seeing the data flowing into my reports in Site Catalyst. Start to finish this project took about 1 hour, not counting the time waiting for the data to show up in SC.
-Rudi
NOTE: If you see the error below when trying to activate the plugin, it is most likely due to an issue with PHP versions. The plugin works on PHP 5.x but not 4.X version.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/r/s/h/code/html/codedir/wp-content/plugins/OmnitureSiteCatalyst/inc/omnitureControlClass.php on line 9
Rudi Shumpert is the Senior Director -Technology Solutions Group & Principal Consultant with Keystone Solutions, based in the Atlanta area. If you would like to work with Rudi email him at rudi@keystonesolutions.com. You can follow him on Twiter, connect on LinkedIn, or listen to him on the Beyond Web Analytics Podcast.





December 14th, 2009 - 18:12
Hello Rudi,
I am getting this error upon activating this plugin:
Warning: array_search() expects parameter 2 to be array, null given in C:\wamp\www\wp-admin\includes\upgrade.php on line 1338
I am indeed using PHP 5.
A lot of other people are getting this bug as well and I see no solution anywhere online, so I’m just assuming that this plugin is still buggy for many people.
Do you or anyone else know if there is a more stable plugin for Omniture?
December 14th, 2009 - 18:14
One last piece of info…
I’m running my blog using a version of WordPress installed on my local machine using WAMP, so perhaps that is the problem? (any feedback would be awesome).
Thanks!
December 14th, 2009 - 18:57
Doron,
I have not seen that error before, but I have been testing out a new plugin from End Point Blog (http://blog.endpoint.com/2009/11/wordpress-plugin-for-omniture.html) It seems to be working quite well.
I should have enough information to update this post or create a new post in the next few days.
-Rudi
December 15th, 2009 - 14:11
Hello Rudi,
The End Point plugin seems to be working for me as well, although it seems to have much more limited functionality (although I see that you commented on Stephen Powell’s blog that you felt that his plugin was *more* robust, so perhaps I’m misunderstanding.
My question is, being that the End Point plugin has no admin interface, where in omniture.php do I place my Omniture account ID?
Thanks for the feedback Rudi!
Doron
December 15th, 2009 - 14:21
Here is a quick and dirty install guide on the new plugin:
To install:
1) Unzip file and move to ~/wp-content/plugins/ directory
2) Activate plugin in WordPress admin
3) Modify ~/wp-content/plugins/omniture_sitecatalyst.php line #10 to use your SiteCatalyst account id
4) Modify ~/wp-content/plugins/omniture_sitecatalyst.php line #12 to add the path to the s_code.
5) Verify / test
December 15th, 2009 - 15:16
Hello Rudi,
Are you referring to the End Point plugin or the plugin you’re featuring in this blog post?
Neither of the 2 plugins has a file called omniture_sitecatalyst.php.
Am I missing something.
I realize it’s not your job to serve as tech support, but thanks so much for all the help!
Doron
December 20th, 2009 - 06:02
I was referring to the End Point Blog. He has a more “packaged version” on the http://developer.omniture.com site. here
January 13th, 2010 - 14:30
Update: I wrote my own version of the Omniture WordPress Plugins http://www.rudishumpert.com/projects/wp-omniture/
-Rudi