• Hey gang,

    Before: I have a static html website with built-in google analytics. Every html file has a script that runs analytics, and all the files (except index.html) are segmented into separate folders for organization and the analytics. This way, we can see which page users have clicked on, how long they’ve remained on a particular page etc. Very specific and accurate.

    Now: It’s currently being converted into a wordpress theme to take advantage of certain functionality, such as password protected areas.

    The theme I have is small, and right now is exclusively using pages. I might add 1 or 2 “post pages” for a blog style section, but that would be all. The main meat of the website is static pages being called with the loop.

    So I have two questions.

    1) Is it possible to create a wordpress theme without using pages, posts or the loop? Something that would call the content from static files (like the html does), rather than from the database?

    2) If pages and the loop are absolutely necessary for a mostly static theme, how do I implement google analytics so we can track which individual pages a user has visited, when all the pages exist in the database?

    It seems analytics is powerful for a post-based website, but I’m not using posts. Any ideas?

The topic ‘Creating a page-based theme with google analytics’ is closed to new replies.