Tracking cannot be toggled on or off using the in-game mini map. The only way to toggle tracking is by the use of the C_Minimap.SetTracking API function.
C_Minimap.SetTracking([index],[boolean])
Hunters
Index Label
1 Track Beasts
2 Track Demons
3 Track Dragonkin
4 Track Elementals
5 Track Giants
6 Track Hidden
7 Track Humanoids
8 Track Undead
Druids
Index Label
1 Track Humanoids
Example:
/C_Minimap.SetTracking(1,true) --Turns Track Humanoids on for Feral Druids in Cat Form OR turns Track Beasts on for Hunters.
/C_Minimap.SetTracking(1,false) --Turns Track Humanoids off for Feral Druids in Cat Form OR turns Track Beasts off for Hunters.
AND
A macro created to enable a set of more than two (2) trackings elements for the Hunters will only enable the first and last non-enabled tracking elements in that set, but a macro created to disable any set of any number of tracking elements will disable all of the elements withing the set.
ENABLE_MACRO:
/run C_Minimap.SetTracking(1, true)
/run C_Minimap.SetTracking(1,true)
/run C_Minimap.SetTracking(2,true)
/run C_Minimap.SetTracking(3,true)
/run C_Minimap.SetTracking(4,true)
/run C_Minimap.SetTracking(5,true)
/run C_Minimap.SetTracking(6,true)
/run C_Minimap.SetTracking(7,true)
ENABLE_MACRO_BEHAVIOR:
Unclicked Click 1 Click 2 Click 3 Click 4
Element 1
Element 2
Element 3
Element 4
Element 5
Element 6
Element 7
DISABLE_MACRO:
/run C_Minimap.SetTracking(1,false)
/run C_Minimap.SetTracking(2,false)
/run C_Minimap.SetTracking(3,false)
/run C_Minimap.SetTracking(4,false)
/run C_Minimap.SetTracking(5,false)
/run C_Minimap.SetTracking(6,false)
/run C_Minimap.SetTracking(7,false)
DISABLE_MACRO_BEHAVIOR:
Unclicked Click 1
Element 1
Element 2
Element 3
Element 4
Element 5
Element 6
Element 7