Welcome Guest, Not a member yet? Register   Sign In
Google Analytics / Conversion URLs and CodeIgniter Problem... (FIXED)
#1

[eluser]rckehoe[/eluser]
Sorry if this question is answered on another post, I tried searching but didn't find anything...

I have a simple codeIgniter build for my site. I am wanting to use Google Analytics as well as conversion statistics on the site... Obviously, all I would have to do is paste the code snippet on the page... That is all well and good, except the URLs are not working properly...

For example, google for some reason accesses this URL:
http://www.MyDomain.com/MyController/MyF...mpaign=sem

I enabled the querystrings in my config and it doesn't go to a dead page, but it is not able to get the correct function, I am assuming because of the ?utm_source =

I am really not sure what to do, but I still need this to access the right function and the right controller... Seems like it is going 50% of the way then failing...

Any suggestions at all?
#2

[eluser]rckehoe[/eluser]
Sorry, nevermind, I fixed it shortly after I posted...

If anyone cares, the reason is wasn't calling the function was because there was no / (slash) seperating the tags from the function call so I simply did this...

$URIArray=explode("&", $this->uri->segment('2'));
$CommunityURI = $URIArray['0'];




Theme © iAndrew 2016 - Forum software by © MyBB