nystudio107 / craft-instantanalytics

DEPRECATED: Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
https://nystudio107.com/
Other
20 stars 9 forks source link

instantanalytics url not redirecting to asset url. #20

Closed knynkwl closed 3 months ago

knynkwl commented 4 years ago

On our production site, the url isn't redirecting to the asset url, it's just giving a blank white screen. It's working on our local env.

knynkwl commented 4 years ago

Is there a reason or server config that would be disabling the redirect?

khalwat commented 4 years ago

This is going to be some kind of server config issue if it is working in local dev, but not on production.

What specifically it is, I don't have enough information to assist you with.

Can you note your production environment, and the differences between your production environment and your local dev environment?

knynkwl commented 4 years ago

We are hosted on Acrustech, and I'm just using MAMP as my local ENV.

knynkwl commented 4 years ago

Hey coming back to this. On our staging site, I am getting:

400
Invalid data received for parameter "eventValue".

Is there something I am doing wrong?

I am adding


<a href="{{ eventTrackingUrl(url, resource.title, "click", "label", "resource")}}" ></a>
khalwat commented 4 years ago

Sorry @knynkwl I lost track of this one, I will have a look at this; someone else mentioned they were having this issue as well.

uaextension commented 4 years ago

Sorry @knynkwl I lost track of this one, I will have a look at this; someone else mentioned they were having this issue as well.

It was me! We've been experiencing a blank screen issue with both eventTrackingUrl() and pageViewTrackingUrl() Example of a generated URL: https://ext.ualberta.ca/instantanalytics/eventTrack/view?url=https%3A//drive.google.com/file/d/0B1qTKpPMGo0eZFhVdThJUUhuODQ/view%3Fusp%3Dsharing&eventCategory=link&eventAction=click&eventLabel=test&eventValue=0

If there are any other config settings that I could share to make debugging possible just let me know.