Analytics Import Error

@NickSherman you finally found a solution?
@Thomas_Christiansen @felix1 @euklid @thomas.kettner can you try what is explained in the previous post?

My webdesigner has set up a cron job that attempts to restart the import every 5 hours now. This works for us, altough its very slow. For importing 11 years of data (351.024 pageviews) it takes about 3 months.

As mentioned in @NickSherman’s GitHub issue, the problem of not restarting imports could be a missing archive cron job (we realized we also haven’t set this up yet). We will not be experimenting with this now that the import finally works, but it might be worth a try for someone else?

1 Like

Yeah, with some generous help from @Altamash_Shaikh in the GitHub issue, I got my import process running now. As @felix1 mentioned though, it seems like it will take quite a while to get through a multi-year dataset. Google used to allow you to pay to increase the rate limit for an import but unfortunately they discontinued that for GA-3 data.

2 Likes

I have an even more interesting error message - “no message”! Same situation here, I’m trying to start a migrate process, but it does not start. I used to have it running, but then by mistake pressed the “cancel” button. This, in addition to stopping the migrate, also deleted the migrate entry, so I need to start the process over, collecting the data to a new container. The migrate used to work for the old container, but the renewed process is killed at start. I have renewed the token, no help.

Hi @TapioLinkosalo
I think there is no error message because there was no error, just a cancellation by you…
I would suggest you just try the Re-import link or create a new import from scratch…

Hi there,
How did you manage to get it work ?
I tried to understand the github issue, but it’s a bit complicated for me.

Did it work only by adding this ? :
Add the below code after this line in plugins/GoogleAnalyticsImporter/Commands/ImportReports.php

if ($idSite != {YOUR_ID_SITE}) {
            $output->writeln('Skipping import for idSite:' . $idSite);
            return;
        }

Or is the Cron-thingy to do also ?

Thanks :slight_smile:

Hi Alex,

I’ve forgotten all the specific steps I went through to get things working, but the code bit you showed for ImportReports.php was used for temporarily pausing an import for one site (to allow the others to use more of the limited requests). If I remember correctly the chron thing was the part that ultimately got things going.