1

I created a goal in Google analytics for tracking all page views which starts with /phone/ s.t. i can track the pages which starts with /phone/.

The problem is I want to track page without tracking code.

Is there any way to generate page view through c# code.

1 Answer 1

1

You can manually enter pageviews to Google analytics using a simple browser you don't need to go as far as using C#. That being said you can also use C# since all you need to do is a HTTP GET or POST and that can be done in C# as well.

You will need to look into the measurement protocol I have a tutorial that shows how to do it with a Application Google Analytics account which uses screen views instead of page views. It should be possible to edit that. The main difference is you wont need to send all the Application account required fields. You will have to figure out which pages you want to send and send that as Document location URL.

If you have any problems let me know I would be happy to help you work this out.

Sign up to request clarification or add additional context in comments.

1 Comment

Hey thanks for reply. I tried a lot, I am hitting "google-analytics.com?v=1&tid=UA-XXXXXXX-1&cid=555&t… " using post but there is no page view in my analytics account can you please help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.