Forum Moderators: phranque

Message Too Old, No Replies

Is Mod Rewrite The Solution?

         

dndco

4:06 pm on Oct 8, 2008 (gmt 0)

10+ Year Member



We have a site running Drupal that has hundreds of image galleries using a Jquery module for displaying the photos. From a user perspective the solution is great. BUT from an analytics and ad serving perspective not so much.

The JQuery module drastically reduces page views and impressions. As a gallery with 15 photos can all be viewed with just one impression and one pageview.

Each photo has a unique URL so I was wondering if the correct rewrite would reload the page on each photo click thus creating the pageview and impression.

Here is what the URLs looks like;

[domainname.com...]

[domainname.com...]

[domainname.com...]

etc...

In Apache I can do your basic 301's but this one is hurting my brain.

Is there another way we could achieve the outcome we are looking for with Apache?

Thanks!

g1smd

6:46 pm on Oct 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Maybe you can add a call to the Analytics code on each href without any refresh madness having to be invoked:

onclick="pageTracker._trackPageview('/downloads/forms.pdf');"

It works with archives, images, or any other type of file. Is that useful?

dndco

7:52 pm on Oct 8, 2008 (gmt 0)

10+ Year Member



I did stumble across the Virtual Pageviews option via G Analytics which is similar to what you have presented.

With some custom PHP to populate a new image name each time that would solve the pagviews portion of the problem.

That would leave the impression problem, which is more pressing as we plan to direct sell advertising based on CPM.

I was hoping for a two birds with one stone type approach with a rewrite...