Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing in app #4

Closed
kphretiq opened this issue Jun 12, 2015 · 8 comments
Closed

Testing in app #4

kphretiq opened this issue Jun 12, 2015 · 8 comments

Comments

@kphretiq
Copy link

This is not a bug report, but a request for clarification.

I've installed Flask-Analytics in my app using pip.

I have add GOOGLE_ANALYTICS_ID in app.config.

I have included {{ analytics }} in the body of my index.html template.

I was expecting to see some interesting new text inserted into my html output, but I note no differences.

What should I expect to see in my html output, if anything?

@citruspi
Copy link
Owner

You should be seeing the analytics code snippet for Google Analytics. I've updated the readme to include a sample result.

(Note that the code in the readme is for the new 0.5.0 release, and isn't compatible with previous versions. If you're still using a previous version, you'd want to stick with the GOOGLE_ANALYTICS_ID key.)

If you're still using the older version, you could try

{{ analytics.google }}

However, I would recommend updating to the new version.

@kphretiq
Copy link
Author

Using pip, uninstalled and re-installed Flask-Analytics got error:

from flask_analytics.providers.gosquared import GoSquared
10:00:57 web.1 | ImportError: No module named providers.gosquared

Sorry to be a pain.

@shamrt
Copy link

shamrt commented Jul 9, 2015

No module named providers.gosquared

This is because the package on PyPI, as it stands, is missing the providers directory.

@citruspi, you may want to check to ensure that you've properly submitted everything to the PyPI service.

@kphretiq, for now you can install the package using the following:

$ git clone https://github.com/citruspi/Flask-Analytics.git
$ cd Flask-Analytics
$ python setup.py install

@scottydelta
Copy link

@shamrt , installing using the source from github also dint resolve the following error. I had to manually copy the providers directory in lib/python2.7/site-packages/Flask_Analytics-0.5.0-py2.7.egg/flask_analytics/

No module named providers.gosquared

@jdp
Copy link
Contributor

jdp commented Oct 7, 2015

+1 for fixing the PyPI release, without the providers directory the extension is crippled.

@loisaidasam
Copy link

👍

@citruspi
Copy link
Owner

citruspi commented Oct 7, 2015

Hey, so now that #5 is merged, I just need to bump the version and upload the new version to PyPi.

I'm going to re-open this issue until the patched version is live.

@citruspi citruspi reopened this Oct 7, 2015
@citruspi
Copy link
Owner

citruspi commented Oct 7, 2015

Cool, so version 0.5.2 has been pushed to PyPi and should be good.

If you run into any issues, just open an issue.

@citruspi citruspi closed this as completed Oct 7, 2015
jwflory pushed a commit to FOSSRIT/Flask-Analytics that referenced this issue Jan 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants