Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Landing pages for Google ads, and...
Landing pages for Google ads, and responding to "form" information
Landing pages for Google ads, and responding to "form" information
Marc wrote to me:
Hi,
I would like to know if I can use Metamod for:
(1) Showing a customized page based on a user that come from a Google Ad
(2) Showing a customized page based on a user that chose one option from a form on another Joomla website page.
(1) Google adwords landing pages: There are lots of ways you could approach this. One way would be to set up a hidden menu and put an article onto that page. Then you can assign modules onto that page in the normal way, and use the URL of that page as the one that you give to Google as the landing page for that adwords campaign. This doesn't require MetaMod.
Another way of doing it is this: if you want adwords to send people to the front page (or any particular public page) of your site, then you might be able to set up a MetaMod on that page that is able to detect whether the "referrer" was adwords. However I don't know for sure if this is possible (I haven't used adwords myself, and I don't know if incoming requests from adwords have a particular referrer string).
I think most sites with adwords set up special landing pages so that they can track exactly who is coming in and what they are looking at.
(2) It's easy to set up MetaMod to respond to form elements.
On the "sending" page (with the form on it) you might have a dropdown with html element name "type", and values "1", "2" and "3".
On the "landing" page you set up a MetaMod with a rule like this:
$type = JRequest::getInt('type',1,'GET');
if ($type == 1) return 101;
if ($type == 2) return 102;
if ($type == 3) return 103;
...
(replace 101, 102 and 103 with the module ids of the modules you want to display for each of the dropdown values on the sending page).
If your form is a "POST" form, then replace 'GET' with 'POST' in the script above.
Re: Landing pages for Google ads, and responding to "form" information
how about showing a module in the landing page and the user can browse and the module will still be there, like a module with a 1800 # with adwords you can specific point a keyword to a URL, so if a user land to this page the 1800 module will stay in that position even if the user browse to another page
Re: Landing pages for Google ads, and responding to "form" information
Ok, good idea.
So we want Joomla to be able to "remember" that someone has visited a certain page, and from then on continue to show a particular module for the rest of the session.
So set up a MetaMod in the position that you want the module to appear in, and set up the module to be included as usual. The MetaMod should be assigned to "all" pages, or at least to all the pages that you potentially want the other module to appear on.
Then use a rule something like the following. This detects whether or not the viewer is viewing the landing page, and sets a "session" variable. Then it checks to see if this is set, and if so, displays the module. This is cool :-)
Code:
if ($Itemid == 57) { /* or some way to detect we are on the landing page */
session_start();
$_SESSION['LANDINGPAGE'] = true;
}
if (@$_SESSION['LANDINGPAGE']) return 101;/* replace with appropriate module id */
Hope this helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Landing pages for Google ads, and...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5941
- Posts this week:
- 1
- User Info:
- Total Users:
- 7618
- Newest User:
- goure1dhowen
- Members Online:
- 0
- Guests Online:
- 166
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked