Analytics
1.7K members online now
1.7K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

How to include a destination url that includes a hashtag in goals?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi. 

 

I am trying to set up goals for two different form completions. Both forms have the url /app.html#/ before the "thankyou"/ " sign-up-complete" text and I have found that I can't set up a goal in this format - eg /app.html#/thankyou as it doesn't work because of the hashtag. 

 

Please can someone advise of a workaround to be able to set up goals for both of these urls? 

 

Thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Lauren R
November 2015

Re: How to include a destination url that includes a hashtag in goals?

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆
If u are using tag manager u can make custom javascript to push event on specific pages and then setup goal on this event

View solution in original post

Re: How to include a destination url that includes a hashtag in goals?

Follower ✭ ☆ ☆
# 2
Follower ✭ ☆ ☆
Edit your analytics snippet
Change ga('send', 'pageview'); to
ga('send', 'pageview', {
'page': location.pathname + location.search + location.hash
});
Marked as Best Answer.
Solution
Accepted by topic author Lauren R
November 2015

Re: How to include a destination url that includes a hashtag in goals?

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆
If u are using tag manager u can make custom javascript to push event on specific pages and then setup goal on this event