Archive for December, 2009

Google Analytics custom segment based on referring site

Jump to answer

I’m a lover of Google Analytics – once you get the hang of the thing it’s a very powerful tool and enables quick reporting on visitor metrics with quite some granularity. [Did I really just say that? Oh dear.]

Especially useful are custom Advanced Segments. I’ve used UTM codes to track responses from email campaigns – very handy but requires you to craft your URLs. If you want to track incoming links for a particular website – or referrer, without control of URLs that actually link to you – it’s very easy – just not well documented – or easy to find with a Google search.

Advanced Segment based on referrer:

  1. set up a new advanced segment
  2. add “Source” from the Dimensions/Traffic Sources/
  3. add the domain that need tracking into the value field.

It’s that easy!

,

No Comments

FTP mget without prompt

Long time no command line FTP.

Today I had to transfer 700Mb from one server to another in the same data center. SSH in to server #1 to grab the files from server #2 – but “a” wasn’t working as an answer to mget (multiple get) as it usually does – meaning “get all”: each file needed an individual yes/no answer a the command line to confirm that I really did want to download it. 

I really didn’t fancy having to watch/wait/click as 1400 files got copied over. 

Easy answer: type “prompt” in your ftp shell to toggle the prompting on and off.

Job done and all files sent over in a jiffy – without having to do a 4,000 km round trip to my desktop or further stuffing my internet connection.


ssh user@host.com
cd path/to/your/files
ftp ftp.host.com
cd path/to/your/files
prompt
mget *
bye
exit

No Comments