Skip to Content
author's profile photo Former Member
Former Member

Need help to configure Google Analytics and Hybris

Hi Experts,
Please guide and help me to solve the below configuration issue,

Am trying to configure Google Analytics Tool for tracking Hybris B2B site. As per Hybris Wiki Ref doc-https://wiki.hybris.com/display/release5/Google+Analytics+-+Installation+Guide#GoogleAnalytics-InstallationGuide-Step1-CreateaGoogleAnalyticsAccount

I have created Google Analytics account and in Website URL field , i have given localhost:9001/yb2bacceleratorstorefront/?site=powertools . but while submitting am getting the error "URL ends with an invalid top-level domain name"

so i changed the localhost with my IP address , but still i got error like "URL must not contain a query". If i remove the query "?site=powertools", how Analytics tool will track my B2B storefront.

Thanks in Advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2015 at 12:30 PM

    You can configure the url of your storefronts so a query parameter is not required to choose which site is required.

    You'll need to:

    Update your machine host file with an entry like this 127.0.0.1 powertools.local

    Update the URL pattern of your CMSSiteModel to something like this (?i)^https?://powertools.local(:[\d]+)?.*$

    Also update this property: website.${CMS_SITE_ID}.http=http://powertools.local and website.${CMS_SITE_ID}.https=https://powertools.local

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.