Pablo
Pablo

Reputation: 3467

Google Analytics generate test data

I'm developing a web application where I need to retrieve statistics from Google Analytics. In order to test API results I created a website which has the analytics.js script on every page. But so far I haven't been able to figure out how to generate organic traffic data... from what I understand in order for a visit to count as organic the user has to access my site by clicking a link on a search engine. How can I achieve this? Any suggestions on generating "mock" organic traffic for development purposes?

Thanks a lot

Upvotes: 0

Views: 1988

Answers (1)

Eike Pierstorff
Eike Pierstorff

Reputation: 32780

For ga.js you can add search engines via _addOrganic. With Universal Analytics you can add search engines in the view configuration.

A search engine to Google ist really nothing more than a referrer with a known url parameter for the search term. So place a form on a domain you control and use it to send a GET parameter to your site; add it as search engine with your parameter and it will show as organic traffic.

Upvotes: 1

Related Questions