Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Weird issue - tag assistant telling me No HTTP response detected #59

Open
michaelhjulskov opened this issue May 14, 2015 · 7 comments
Open

Comments

@michaelhjulskov
Copy link

Hi there

I been trying for hours to solve a issue
according to the tag assistant, some of my pages on http://www.dyrefoder.dk is not correctly set up
It tells me: No HTTP response detected

I tried to find a pattern and first I thought it was special chars like æøå that messed something up, but nope. That wasnt the case.

My latest discovery is that it might be related to the number of shown
products shown on the page. And then again im not sure, cause on one page (http://www.dyrefoder.dk/produkter/hund/godbidder) the issue starts when i have more than 12 products, and on another page (http://www.dyrefoder.dk/produkter/hund/hundefoder) i need 13 products to recreate the issue. I wonder whats really the issue an I would appresiate some help, thanks.

Thanks in advance

PS 1.6.0.9
latest updated ganalytics module installed

@rdonato
Copy link

rdonato commented May 14, 2015

There is a limit on the length of data you can send to google analytics.
Maybe it helps you:
link to protocol

@michaelhjulskov
Copy link
Author

Hi, thank you
Okay so in a way the module is creating too long string of data? And do you know a workaround?

Im also wondering why all this data is sent to GA on just a simple category page load.

@rdonato
Copy link

rdonato commented May 14, 2015

The data is sent from the hookFooter action I limited the sent data to 10 items...It's a poor workaround but keeps the page tracked on analytics, something like that in ganalytics.php:

public function addProductImpression($products)
    {
        if (!is_array($products))
            return;

        $js = '';
        $count = 0;
        foreach ($products as $product) {
            $count++;
            $js .= 'MBG.add('.Tools::jsonEncode($product).",'',true);";
            if ($count === 10) break;
        }    

        return $js;
    }

@michaelhjulskov
Copy link
Author

Yes
okay thanks
I also thought of that workaround and its working.
But if someone have a better/more correct solution, please let me know
Thanks

@kostasmichalaros
Copy link

I have this issue too... the above did not work for me...

@cedricfontaine
Copy link
Contributor

Hello,

I have a new dev version of the module to add the ability to limit data sent. Anyone interested in it ?

@cedricfontaine
Copy link
Contributor

Could you try with the new release ? It should limit data sent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants