Tube PPC Script Google Setup
Posted by Konrad Piwowar, Last modified by Konrad Piwowar on 01 November 2018 02:06 PM

To configure the PPC script with your Google Analytics account, you must do the following:

1) Create a Google Developers project as per
2) Create service account under this project, see instructions as per
3) Select P12 for Key Type.
4) Download the .p12 file for this service account, upload to the admin directory
5) Enable 'analytics API' in the Google Developers console
6) In Google Analytics Administration > User Management, give the service account 'Read and Analyse' permissions on the analytics accounts you want to access. The email of this account is the one you get when creating the service account.

5) set a new variable for each $tubeConfig in your admin/config.php file, so it looks like this:

$tubeConfig[0] = array(
"siteName" => "Blah",
"siteFeedUrl" => "",
"uniqueSiteSlug" => "myTubeSite", //DO NOT CHANGE THIS EVER ONCE YOU START!
"googleAnalyticsEmail" => "",
"oAuthKeyFile" => "KEY_FILE_NAME_GOES_HERE.p12",
"googleAnalyticsProfileID" => "12345678" //THIS IS DIFFERENT THEN THE UA CODE!

The email address must be the one that is generated with the p12 key.
The last step is log into your google analytics and give access to that new email address read/write access to your analyts.

(1 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).