Spree commerce Google analytics update - ruby-on-rails

I need to update Spree Commerce web-shop's Google Analytics code to be able to track demographics.
https://support.google.com/analytics/answer/2819948
I have the full source code of website downloaded.
When I do a text search over the whole code I am unable to find anything Google related, or even a string "ga.js". Obviously I am missing something, but how do I go about even to start figuring this out?
Any help much appreciated.

Search over a local clone of spree. https://github.com/spree/spree.git
Grep for ga.js
You will find this file: core/app/views/spree/shared/_google_analytics.html.erb
Copy it to your own code base at: app/views/spree/shared/_google_analytics.html.erb
Change what you need to change.

Related

How to build app Twitter using Retrofit?

I need to help. I'm doing a project about Twitter, but I don't know how to build it by using Retrofit. I really need some documents or an available one to make a reference.
Thank you!!!
This is an example in a complete tutorial for retrofit, I suggest you read the whole tutorial before you start working on the Twitter example, good luck:
http://www.vogella.com/tutorials/Retrofit/article.html#exercise-using-retrofit-with-oauth-to-request-user-details-from-twitter-in-android

How to get Swagger UI to work based on documentation guide? (even the example)

I am trying to use Swagger UI to document our node.js API, so I went to http://swagger.io/docs/, down to Swagger UI Documentation -> Usage, to find this
Now, this is not the only place that provides these instructions, there are dozens of blogs & tutorials saying the same thing, so that's exactly what I did.
Cloned the repo, went into /dist/ and ran the /dist/index.html and all I get is an empty page with an error:
I'm slowly going crazy now as I can't find anything about it and literally every place I looked just has the same, copied, instructions with nothing else provided (like what could go wrong? you just open a file...)
Any help or explanations are much appreciated!
P.S. for some reason opening the /public/index.html works (mentioned nowhere on the www)
I think this is bug in new version of swagger-UI. This is fresh release and they are still modifying and fixing bugs.
Look here: Swagger-ui cannot access JS scripts. This seems to be similar problem, maybe it will help you.

Issue with Weather Underground API-rails

I just finished a simple weather web app using the Weather underground API and the Gem wunderground. I got the site up, through Heroku, and it can be found here:
https://mike-weather.herokuapp.com/ . When I was building the app, it worked perfectly but when I put it up on the web, it appears that when I enter a city and select a state it does nothing. Does anyone know what is wrong or how to fix this? The code for my project is at github, username ravenusmc. Thank you for any help that may be provided.
I suggest double checking to make sure you have ENV['wunderground_api_key'] set on heroku.
You can check the environment variables by running 'heroku config'.

Google Fusion - Won't Allow Me to Publish a Feature Map

Here is the link to my public fusion table: https://www.google.com/fusiontables/DataSource?docid=1dp1DTZKzXWLE4TbI2Z9q-5jetC0iVt6ee_0eZdU8#map:id=3
I'm trying to publish the feature map and embed on a website, however 'Publish' is grayed out. Since I've set everything to public, I can't figure out what's preventing me from publishing and embedding.
I suggested a workaround when you asked this question on the product forum.
I don't understand why it's happening, but there's something stuck in a strange state for this table. Can you try downloading it to a CSV file and reimporting to a new table? You'll have to redo your map styles, but publishing should work on a new version,

Website and Firefox Plugin

I have created a website that downloads videos from Youtube. But now I want this as a firefox plugin.
I searched in google since last 2 days but hard luck to find the things. So please help me to convert my website code to firefox plugin.
Thanks
Take a look to Add-on SDK. Here the documentation, and you can also download it from Github.
I would say that the Getting Started section of Add-on SDK docs is a good place to start your reading.
You can also join the IRC channel #jetpack on irc.mozilla.org and ask help directly to the SDK team, if you have any doubt!

Resources