To store certain values in a geometry and to be able to use them later in the shader, you use the node Store Named Attribute
.
So that the values are really stored in the geometry that ends up at the Group Output, this node must also be attached somewhere along the green noodle, because the node stores the data in the geometry that is applied to its input and returns the geometry at the output.
In this concrete case you simply hook the node Store Named Attribute
after the node Collection Info
, and select Instance as domain.
This way the desired data will be stored in the instances and will be available later in the shader.
But to make this setup really work in the end, you would still have to convert the instances with the node Realize Instances
and assign a material, because only this way the shader can process the geometry separately and apply the previously stored values.