Using Google Analytics to make a Poll based on link clicks - html

So I know google analytics can track my page links, but how can I get the number of clicks as raw data and reincoorporate it into the HTML?
I have two images in anchor tags, the user can "vote" for either image a or image b. Each image leads to its own separate html page. How can I use the pageview data from each of these two links and display them underneath the images on the main page, essentially creating a poll.

Related

I am trying to make something in my web page that, after pressing a button, randomizes three seperate images and then shows pieces of text related

I'm trying to make a website about a game, this game has items, characters and places and I'm trying to code something where, when a button is pushed, it will show a random item, place and character and then show text based on the image it shows, I am working with Html 4 and am a very novice coder

Display results of a google image search

I want to know if it's possible to display the first n images of a google image search (with a pre-defined search keyword) on my page.
For instance, I have this link
https://www.google.com/search?tbm=isch&q=red+apple
I want to display the first 5 result on my website on page load.
I would like to solve this without a server, on client side when the visitor visits the page.
Is this possible?

Displaying image content types as grids in drupal 7?

I am currently using the Views and Display Suite modules to create a page that works as an image gallery. You click on the menu button to take you to a page (the view) that has multiple links to nodes (individual galleries).
When you click these nodes, they take you into the separate page and show all images uploaded using the "event" content type that I made.
The event content type has one field (type: image) that uses a multiupload widget, allowing for multiple file uploads.
However, the images on the node are displayed within divs, so they all have their own rows basically. I would like to know if it was possible to put them all into grids, and if so; how? I tried using display suite, but I only have that one field to work with.
If you want to get a fully customized page and arrange the fields just like you want, use the theme suggestions.
For a node of type "event", as you said, it would be node--event.tpl.php. You can duplicate the code inside the base template node.tpl.php of your parent theme (or if you don't have one, of Bartik for example) to have a good starting material.
Just rearrange the div, the tags, the variables as your convenience, add some custom CSS to make your grid, and you should be done!
I hope it helps.

Hold data for list to add later?

So no SQL tables or anything here. Basically, I have 3 pages that have 6 items each. Each item consists of an image and then some text and also a smaller image than changes from a check to an "x" depending on if user selects or not. So if the image is checked, the user is adding that to a list which would display on a fourth page. This data needs to persist through just a session and if the session times out, then it resets. If the list is complete and on that fourth page the user choices to email or share list via social sharing, then the data would be gone after that action. What I am trying to figure out is the best way to approach and implement this with minimal time and effort as it has to go out quickly. Can any of you explain and maybe point to some links with info on the best way to achieve?
This is being done in asp.net web forms with html, css, and javascript.
Much appreciated!
You can use ViewBag() (for view in razor) or ViewData[] (for page in .net) to hold data for one web page.when you want it to other page. You can pass it to other page.
check this out
ViewBag, ViewData and TempData

put images in split by pages

I have 100 images to put on my website in one div. I want to put 20 images and give page numbers in the down, so that if user clicks on '2' it takes to next 20 images. How is this possible. I have tried searching, but could not find any answer
Depends really how your page serves these images. If you have a static HTML page then your only option would be to use JavaScript/jQuery.
If info about your images is serves from a database behind your web application then you can use pagination and routing. For instance you could have an url http://mydomain.com/images and this would select the first 20 images from your database then bellow you gallery you can have a set of links Previous and Next and when you click on Next it takes you to the url http://mydomain.com/images/20 still the gallery page only /20 appended to it to use as an offset for your SQL Query.
Tho seems what you really need is just a simply jQuery image gallery something like this:
http://www.tn3gallery.com/?refCode=fe8775
http://galleria.io/
http://spaceforaname.com/galleryview/#
http://tympanus.net/codrops/2010/06/24/multimedia-gallery/