Attached is a patch that enables integration with the Search API Pages module. It adds another checkbox on the admin screen to enable it and if enabled sets the custom URL to the search api page and passes the search keywords.

Comments

Status: Needs review » Needs work

The last submitted patch, search_api_page_integration.patch, failed testing.

wwhurley’s picture

StatusFileSize
new3.64 KB

Rerolling the patch...

wwhurley’s picture

Status: Needs work » Needs review
StatusFileSize
new3.64 KB

And changing status

hass’s picture

Looks like a duplicate of refactoring plan in #934076: Refactor search keyword tracking with hook_search_preprocess

hass’s picture

Status: Needs review » Closed (duplicate)

Please join forces.

Andreas Radloff’s picture

This patch doesn't work for me, in my Profile settings at google I've tried setting the Query parameter to only the search page path ("sok"), to "sok,search" and just search. Running on nginx, not apache if that will matter at all.

How did you set it up, whurleyf1?

EDIT: Nevermind, google was just holding back the data 24h, working settings: sok,search

farald’s picture

Ignore this patch.
Same as above, but removes the 'no-results:' result prefix.

travisc’s picture

Status: Closed (duplicate) » Needs review
travisc’s picture

I'd really like to see this patch get committed. The patch doesn't apply cleanly anymore but its simply a change of the form naming.

It's very similar to the functionality already existing in so it's not really much of a stretch that it would be a feature of this module.

hass’s picture

Status: Needs review » Closed (duplicate)
jelo’s picture

Issue summary: View changes

Hello,

It doesn't look like there has been progress on either of the two issues to get a patch committed that would allow Search API tracking in GA. I would really love to see this functionality in the module. The other issue is marked against version 8 which would then require a backport. Hence, is it possible at all to add the functionality from this working patch against version 7 in a custom module? My coding skills are not advanced enough to make it happen, but happy to test...

Thanks, J.

nterbogt’s picture

StatusFileSize
new4.01 KB

Updated patch for those that need it.
Adding support for vertical tab summary.

nterbogt’s picture

StatusFileSize
new3.94 KB

Slight change to pass a more consistent URL through to GA. More in line with what standard search implementation does.

rooby’s picture