I have received the following error:
Fatal error: Call to undefined function google_analytics_api_check_token() in /home/thesuper/public_html/4schools.ie/sites/all/modules/seotools/plugins/seotools.presets.inc on line 234
under:
admin/content/seotools
admin/presets/seotools

CommentFileSizeAuthor
#18 google_analytics_api.tar_.gz27.26 KBccamporeale

Comments

adpo’s picture

Under:
admin/content/seotools

Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /sites/all/modules/seotools/seotools.report.inc on line 15

under:
admin/presets/seotools
Fatal error: Call to undefined function google_analytics_api_check_token() in //sites/all/modules/seotools/plugins/seotools.presets.inc on line 234

adpo’s picture

I can't use Google Analytics API. This project has moved! Please visit new project page: Google Analytics Reports.

hmt3design’s picture

I switched from the Google Analytics API to the Google Analytics Reports and now I'm getting this error. GA-API has been discontinued, so this module needs to be updated to reflect the new Reports project.

mastermindg’s picture

Assigned: Unassigned » mastermindg

What is the status of this update?

Ozyric’s picture

Same problem here, curious to know the answer
Fatal error: Call to undefined function google_analytics_api_check_token() in /homepages/35/d315750641/htdocs/sites/all/modules/seotools/plugins/seotools.presets.inc on line 234

grendzy’s picture

Wow! I was not previously aware of the seotools module. Your dashboard is impressive!

The internals of google_analytics_reports has been through some refactoring. One of the goals of the refractor was to have a more focused API, with fewer "helper" functions, and an easier-to-use (dpm-friendly) data format. The API is also a bit "closer to the metal", in terms of what Google provides (for example, the "ga:" prefix is now required on metrics / dimensions).

I suggest fetching all your data from google_analytics_api_report_data() and google_analytics_api_account_data(). Most other report functions should be considered private, and may change again in the future as we refine the UI. There are a few changes to the format of the parameters - you can see example code on the GAR handbook page: http://drupal.org/node/1138274

Thanks!

BTW, if you need access to the previous version the final alpha release can be downloaded here: http://drupal.org/node/557406

netlynx’s picture

Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Critical

Hi - I am confused why this issue is shown as a support issue when for a new install it is clearly critical.

I am also confused as to why this project is shown as actively maintained and available for install when (and I'm happy to be corrected) it doesn't work for a new install. Particularly when it takes so long to install all the modules and related modules to find it's making out of date function calls.

As previously stated the required module has moved to google_analytics_reports and it is NOT available in the required legacy state. This renders the whole seo tools project unusable due to dependancy.

The result is a white screen of death and no way to fix.

Note - I did add an empty function to google_analytics_api.module just to prove the point. This enabled access to the presets screen (but makes
content management>SEO tools crash to WSCD)

Before install I did check the issue queue but not this issue due to it being only a 'support' issue

I can see a lot of work has gone into this and it looks to be great - but how's about either fixing it or at the minimum updating the true situation here and on the download page to indicate it's not working currently; instead of setting us up for a big let down and a huge waste of valuable time.

As I said I'd be very happy if I have the wrong end of the stick....but if so I can't see it right now.

ps - I do not get the mentioned error; just a WSOD so strictly speaking this is perhaps a different issue, but the cause appears to be the same so I attached it here.

randallknutson’s picture

This should be fixed in RC3. Please give it a try and let me know.

Anonymous’s picture

Version: 6.x-1.0-rc2 » 6.x-1.0-rc3

RC3 error is not gone:

Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /public_html/drupal-6/sites/all/modules/seotools/seotools.report.inc on line 15

netlynx’s picture

Updated to RC3 - same issue - WSOD on Dashboard url. (content management>seo tools>dashboard)

lifer’s picture

I have the same problem, has it been fixed yet?
I know the whole system is mostly running on peoples spare time, but it would really be appreciated if we could get this to work.
Thanks for all your time :)

snowmountain’s picture

I also have WSOD.

I have the seotools installed, latest modules as of 6/17/2011, Drupal 6.22, and the dashboard is still not working.

With the Google reports and api enabled, I get the WSOD, and without them enabled, I get this message:

"SEO Tools has not been configured properly. Please go to seotools presets and ensure that it is configured properly.
Unable to generate dashboard. "

snowmountain’s picture

FYI,

From #7 above,
" ... add an empty function to google_analytics_api.module just to prove the point. This enabled access to the presets screen ..."

I did not have to add a function, and got from the seotools dashboard page (which didn't work), followed the link to the presets page, and could enable Google Anlaytics API & Report.

So, it seems this much (getting to the presets page) HAS been fixed. (This was with the Google Anlaytics API & Report modules NOT enable, however.)

The WSOD still returns after enbabling those modules from the presets page, though.

snowmountain’s picture

More info:

The WSOD has this text top of page (admin/content/seotools/dashboard):

Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /***/sites/all/modules/seotools/seotools.report.inc on line 15

bcobin’s picture

subscribing

randallknutson’s picture

The google analytics api module has gone through a name change and complete rewrite so we're working on integrating the new version in our seo modules. Because the change was so drastic, we haven't had the time for the major update yet.

bcobin’s picture

Thanks for the update, randallknutson - much appreciated!

ccamporeale’s picture

StatusFileSize
new27.26 KB

Here's a version of google_analytics_api + google_analytics_reports which works with the expected function calls.
It's an older version reverted to the commit prior to the refactoring of these functions.

dmendo11’s picture

Hi guys,

Let me just say first, thank you for the great module. I would love to get more information on this though. As it looks like the SEO TOOLS Dashboard is not working and keep getting this same error:

Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /***/sites/all/modules/seotools/seotools.report.inc on line 15

This looks like it has to do with the Analytics API, if I do install the file from ccamporeale, the problems then stays on the GOOGLE ANALYTICS REPORTS

After taking a look at the API FILES, they are very different from each other and it does cause a problems.

Any fixes for this yet?

Much help is aprreciated.

David

ShadowMonster’s picture

subscribe

ShadowMonster’s picture

I'm trying make something work in here.

I comment lines 15-23:

   /* if(!google_analytics_api_current_profile_id()) {
      $enabled_modules['google_analytics_api'] = FALSE;
      $msg = t('You enable full dashboard reporting you need to !link.',
        array(
          '!link' => l(t('set your Google Analytics ID'), 'admin/settings/google-analytics-api', array('attributes' => array('target' => 'google_analytics_api'))),
        )
      );
      //drupal_set_message($msg, 'warning');      
    }*/

and then replace line 42 by:

  $gid = variable_get('google_analytics_reports_profile_id', 0);

Anyway I stuck in seotools_fetch_ga_data function with show me errors for getDimmensions and getMetrics.
Well this is my first touch with this module and GA API. Hope so it will help someone...

outbound’s picture

THis really sucks.

After spending nearly an hour installing the 20 modules signing up for API accounts and such to get NOWHERE!

And looks like this issue is at least 2 months old and counting. Why is this module listed as actively maintained?

dartdev’s picture

I have the same issue
Fatal error: Call to undefined function google_analytics_api_current_profile_id() in seotools.report.inc on line 15

alohaglide’s picture

Same error, subscribing.

alohaglide’s picture

Question...

Is there a version of the SEO Preset that contains a working set (however old) of modules that are needed to successfully use SEO Tools without the analytics error?

grendzy’s picture

alohaglide: yes, the final release of the old API module can be downloaded from http://drupal.org/node/557406.

Oceanman’s picture

I hate to complain but there should be a warning on the cover page of this module that it is not going to work until...... whenever, after all it has been months. It is a lot of time to install everything then have to search for the reason it is out of whack.

Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /public_html/***/sites/all/modules/seotools/seotools.report.inc on line 15

Here is the list of other modules I installed that do not match the "recommended" , will these also cause issues?

google_analytics_reports Google Analytics Reports 6.x-1.0 (Recommended: 6.x-1.0-alpha1)
seo_friend SEO Friend 6.x-1.1 (Recommended: 6.x-1.0)
nodewords Nodewords 6.x-1.x-dev (Recommended: 6.x-1.11)
page_title Page Title 6.x-2.5 (Recommended: 6.x-2.3)
xmlsitemap XML sitemap 6.x-2.0-beta3 (Recommended: 6.x-2.0-beta2)
contentoptimizer Content Optimizer 6.x-2.x-dev (Recommended: 6.x-2.2)

@ grendzy I installed the API you posted and I no longer get the error above but the Google Analytics Tool still gives this error:
You have not set your google analytics account. Go to admin/settings/google-analytics-reports to set up your account.

I granted access on this page:
/admin/settings/google-analytics-api
which seems to work and on this page:
/admin/settings/googleanalytics
everything also seems to be as it should but it is still not working.

stan turyn’s picture

Subscribing

And please stick some sort of warning on the module page that it's currently broken

TomDude48’s picture

Status: Active » Needs review

I have updated the reports to work with the Google Analytics Reports module along with several other updates.

gundara’s picture

I get this funny message:
You enable full dashboard reporting you need to set your Google Analytics ID.
Google Analytics id not set.

snowmountain’s picture

I got the same message, and my GA id was already set.

I clicked the link that appeared with the message (as I recall) and there was a textbox where I could enter something - it seemed to be a business Google Analytics key or something - the help text said to leave it blank if you didn't have one. So I left it blank, and still didn't have the dashboard. Then I clicked the button to submit, even with the blank textbox, and after that the dashboard worked.

Sorry if this is vague, I am going by memory and the site is live now, so reproducing this would be a little difficult. I hope this helps!

TomDude48’s picture

snowmountain you are correct, you have to click through the Google Analytics Reports OAuth settings to select which GA dataset you want to use for your dashboard. Then the dashboard will work.

It is a little confusing, but that is the way OAuth works.

technologywon’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Drupal 6 is no longer supported.