Menu

Tracking Searches in
GOOGLE ANALYTICS.

Entries in Programming

Tracking Searches in Google Analytics

Jon Volks
Written By | @webproninja

I like to know what website visitors are searching for on my websites. It’s great insight to see if there is something missing in the navigation (among other things). I like to put the results into Google Analytics since that is the dashboard I’m already checking for various statistics. Lets start tracking searches in Google […]

PDF Tracking in Google Analytics

Jon Volks
Written By | @webproninja

For the past two weeks I’ve been going through the Google Analytics Academy in order to learn everything I can in order to get Google Analytics Certified. Although I’ve learned lots of awesome things, there is one tip that I really wanted to share. That would be how to track PDF files within Google Analytics. […]

Replacing Microsoft Word Special Characters

Jon Volks
Written By | @webproninja

One of the biggest complaints I get from my content users is web users filling out a form and they copy/paste from Microsoft Word. All the quotes and apostrophes show up as curly ones and depending on character encoding, do not show up (or at least show up as unrecognizable such as a square). Microsoft […]

Smooth Scrolling for Links to IDs

Jon Volks
Written By | @webproninja

Below is a piece of code that I recently used to do smooth scrolling on an anchor tag to an ID on the page. It requires jQuery to be on the site.

Absolute Position Within a Div for Top, Right, Bottom, Left Properties

Jon Volks
Written By | @webproninja

Ever have one of those tips that you wished you knew about years ago? Well putting an absolute position within a div is one that I recently discovered. I’ve always tried to avoid using position absolute in my CSS but a recent design I was given had a lot of slider adjustments overlaying a group […]

WordPress Shortcode

Jon Volks
Written By | @webproninja

What is WordPress Shortcode?¬†Shortcode is a great way for you as a programmer to give your every day general users, a way to put in dynamic content that might normally to hard for them. If you haven’t seen it before, in your WordPress WYSIWYG (editor), you may have seen something that looks like this [something […]

PHP String Contains and Identical Operators

Jon Volks
Written By | @webproninja

PHP doesn’t have an operator for CONTAINS like ColdFusion but there is a work around. What we are going to use is the strpos() function which pretty much returns the position of one string within another string. Example: strpos(“You are here!”, “are”); The result will return 4 (remember PHP starts on 0). This will work […]

PHP If/Else Statement Inline Code

Jon Volks
Written By | @webproninja

Computer Science 101, the classic if/else statement which is in every programming language from Javascript to PHP ¬†have. The syntax might be different language to language but the logic is all the same. Today I’d like to dive into the if/else statement and talk about ternary operators (?:). Essentially it’s a short hand way to […]