I would like to push
an individual page name for every page on my website (Home, Product Page Product A, Productpage Product B, Category Page Products A-C)
and a general category (Home, Category, Cart, Productpage)
into the DataLayer with pageName and pageCategory.
For now, we work with Typo3 and an extension from our tracking tool to name pages and categories individually.
We dislike this tracking tool and want to change to Google Analytics, so we would also get rid of the extension.
How is an individual page name and category usually set for every page? How to set and pull those two efficiently?
Each record is individually in TYPO3 as it is referenced with an uid.
Your pages have an uid and also your categories.
Also your pages can (should) be uniquely identified by the full path (URL). The same for categories: if you disentangle the tree you should get unique category-pathes.
So you can use the uids you can't see the hierarchy in any analytics tool (or at least you need to add the hierarchy information).
If you use the pathes it should be possible to split/group the accesses in the same way as the hierarchy is given in the pathes.
Related
I have a Kentico e-commerce website with the following tree structure:
Products
My Category 1 (Category page)
My Product 1 (Product page)
My Product 2 (Product page)
Categories can be accessed by any combination of the following URL’s:
/my-category-1/red (Filters)
/my-category-1/plain/red (Filters)
/my-category-2/patterned/red/plain (Filters)
This is achieved by setting up a 'route' against the 'My Category 1' category with the path/pattern '/my-category-1/{*categories}'
We also have a requirement to be able to access products via the URL’s
/my-category-1/my-product-1
/my-category-2/my-product-2
These pages are never hit however because of the route setup against the category pages.
Does anyone have any advise of how this could be achieved whilst maintaining the desired url structure? I'm trying to avoid a scenario whereby I have to perform a database check of whether a page is a product or not.
Is there anyway to 'prioritise' routing in Kentico?
Your product URL /my-category-1/my-product-1 falls under /my-category-1/{*categories}, so system will always take you to the category page trying to apply some filter. You just need to put different URL templates for those pages, e.g.:
Product page:
/product/my-category-1/my-product-1
/my-category-1/product/my-product-1
If don't want to set product page URL like above, you have to URL template for Category with filter, e.g:
/my-category-1/filter/{*categories}
This is not that much of Kentico problem, but routing. You can get more details on routing here.
I'm new to WordPress, and want to use Woocommerce for my online shop. However, I am creating things using photos supplied by the customer for certain products. Other products can be sold as is.
That means if the customer orders an item in this category, he needs to upload the photo to be used to create that item while placing his order. This photo must be linked to the order, and must not be visible to the other customers, but only to me when I view his order.
Is there any existing WordPress theme that caters for this, and if not, how do I modify Woocommerce to cater for this?
More than one customer can order the same product, and each customer must be able to upload his photo to be used for that product for that order. Each client's photo must only be linked to that specific order for that specific customer for that specific date.
You can use Woothemes's Product Add-ons plugin. It allows you to add custom fields to your product including file-inputs. These fields will be displayed on the front-end & user can fill their values/upload files which will be included with their orders. And as an admin, only you will be able to see the values/files in the order-details section.
You required to add image with each product, which should not be display to your customer, only to you while some order placed by customer:
In this case you required to add custom field over there in Product Custom Post type.
You can refer to this link for creating Custom Field
http://wp-types.com/learn/create-an-ecommerce-wordpress-site/create-custom-fields-and-taxonomies/
I defined some custom variables to make it possible to identify when a specific user visits my website. So for each user I can see when and how many pages they visited, avg visit duration etc.
Is it possible to know which pages they have visited?
I was able to make it work by going to Content > Site Content > All Pages and adding a custom segment (in Advanced Segments) that allowed me to filter by custom variable (ie, user id in my case). This way it shows all pages viewed by the user I've filtered
In Magento, how would I be able to treat products in a particular category differently?
Lets say, I have one category "Specials" and I want to have a bit different presentation of its products from the rest of the catalog products.
I initially thought about hooking custom styles up to the category class name that gets attached to BODY element. That, however, does not seem to be fool-proof, since if you directly access those products, they dont always show up as in that category (assuming cookies or sessions have a say in this) and custom styling is ignored.
Also though about assigning custom layout template to that category, but I am using those as layouts and not styles and I dont want to mix up the uses to avoid issues in the future.
Anyone had this concern before? Thanks for the help!
You have 2 code oriented solutions :
If the notion of "category" is the fact that you're accessing a product through a category (on your product page, the breadcrumb display the category), you'll be able to cehck (somewhere in your catalog/product/view.phtml) the Mage::registry('current_category') which contains your current_category and compare it with your "particular category" (which could be stored as a configration variable)
Otherwise, if you want your style applied even when you're not accessing your product via the category navigation, you'll have to manually check your product categories ($product->getCategoryIds()) and compare it with your "particular category" (which could be stored as a configration variable)
ps: keep in mind that a product can be assigned to multiple categories
Hops this helps you
If you have particular category like special so Create new theme for Only Special category and assign that theme to special category from backend, you can easily assign different theme to different category from category management page in admin.
Or you can aslo assign different theme to products also from manage products page.
I'm developing an E-Commerce site and I want to set-up a Google Analytics Goal for whenever a user visits any product page. However, the product pages are all in different categories and have different urls.
There are 2 approaches you could take.
The preferable way is for you to unify the product page URLs to meet a particular pattern, so that you could configure the goal to be a Head Match on that pattern.
ie, if your gimzo product URL is domain/products/gizmo, and your widget product URL is domain/products/widget, you could set the goal to trigger for viewing /domain/products as a head match.
Or, you could just set a new pageview/event for every product pageview. ie, on the product page, set an additional event to lock the goal against. (The drawback to this approach is that it messes with bounce and exit rate numbers.)
Now, the one caveat with these approaches is that a single goal can only trigger once per visit, so, your "Goal" will only trigger once, even if I view 4 product pages in my visit.